fix(nuxt): avoid injecting adhoc modules in schema (#19607)

This commit is contained in:
Daniel Roe 2023-03-11 22:11:48 +00:00 committed by GitHub
parent 4163bb8d04
commit 53a2a0fdcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ export { }
} }
} }
const adHocModules = ['router', 'pages', 'imports', 'meta', 'components'] const adHocModules = ['router', 'pages', 'imports', 'meta', 'components', 'nuxt-config-schema']
export const schemaTemplate: NuxtTemplate<TemplateContext> = { export const schemaTemplate: NuxtTemplate<TemplateContext> = {
filename: 'types/schema.d.ts', filename: 'types/schema.d.ts',
getContents: async ({ nuxt }) => { getContents: async ({ nuxt }) => {

View File

@ -6,7 +6,7 @@ const components = ['NoScript', 'Link', 'Base', 'Title', 'Meta', 'Style', 'Head'
export default defineNuxtModule({ export default defineNuxtModule({
meta: { meta: {
name: 'head' name: 'meta'
}, },
async setup (options, nuxt) { async setup (options, nuxt) {
const runtimeDir = resolve(distDir, 'head/runtime') const runtimeDir = resolve(distDir, 'head/runtime')