fix: remove vue alias (#335)

This commit is contained in:
Daniel Roe 2021-07-16 10:12:11 +01:00 committed by GitHub
parent 5d7ded368b
commit 98cf97d269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -54,7 +54,6 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
const { appDir } = await import('@nuxt/app/meta') const { appDir } = await import('@nuxt/app/meta')
options.appDir = appDir options.appDir = appDir
options._majorVersion = 3 options._majorVersion = 3
options.alias.vue = normalize(require.resolve('vue/dist/vue.esm-bundler.js'))
options.buildModules.push(normalize(require.resolve('@nuxt/pages/module'))) options.buildModules.push(normalize(require.resolve('@nuxt/pages/module')))
options.buildModules.push(normalize(require.resolve('@nuxt/meta/module'))) options.buildModules.push(normalize(require.resolve('@nuxt/meta/module')))
options.buildModules.push(normalize(require.resolve('@nuxt/component-discovery/module'))) options.buildModules.push(normalize(require.resolve('@nuxt/component-discovery/module')))

View File

@ -49,9 +49,7 @@ export async function bundle (nuxt: Nuxt) {
vue: {}, vue: {},
css: {}, css: {},
optimizeDeps: { optimizeDeps: {
exclude: [ exclude: []
'vue-router'
]
}, },
esbuild: { esbuild: {
jsxFactory: 'h', jsxFactory: 'h',