fix(nuxt3): add built-in modules last (#2911)

This commit is contained in:
pooya parsa 2022-01-25 17:45:00 +01:00 committed by GitHub
parent b0a56ad807
commit 7a1cf622bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
// Temporary until finding better placement for each // Temporary until finding better placement for each
options.appDir = options.alias['#app'] = resolve(distDir, 'app') options.appDir = options.alias['#app'] = resolve(distDir, 'app')
options._majorVersion = 3 options._majorVersion = 3
options.buildModules.push(pagesModule, metaModule, componentsModule, autoImportsModule) options._modules.push(pagesModule, metaModule, componentsModule, autoImportsModule)
options.modulesDir.push(resolve(pkgDir, 'node_modules')) options.modulesDir.push(resolve(pkgDir, 'node_modules'))
options.alias['vue-demi'] = resolve(options.appDir, 'compat/vue-demi') options.alias['vue-demi'] = resolve(options.appDir, 'compat/vue-demi')
options.alias['@vue/composition-api'] = resolve(options.appDir, 'compat/capi') options.alias['@vue/composition-api'] = resolve(options.appDir, 'compat/capi')