From 7a1cf622bc0c648d37dc8ceb54badb7073c7b8a1 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Tue, 25 Jan 2022 17:45:00 +0100 Subject: [PATCH] fix(nuxt3): add built-in modules last (#2911) --- packages/nuxt3/src/core/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt3/src/core/nuxt.ts b/packages/nuxt3/src/core/nuxt.ts index 0a70c5f03c..6d70d95f89 100644 --- a/packages/nuxt3/src/core/nuxt.ts +++ b/packages/nuxt3/src/core/nuxt.ts @@ -101,7 +101,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise { // Temporary until finding better placement for each options.appDir = options.alias['#app'] = resolve(distDir, 'app') 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.alias['vue-demi'] = resolve(options.appDir, 'compat/vue-demi') options.alias['@vue/composition-api'] = resolve(options.appDir, 'compat/capi')