mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: remove vue alias (#335)
This commit is contained in:
parent
5d7ded368b
commit
98cf97d269
@ -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')))
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user