fix(bridge): revert optimization exclusion for vue-demi (#1932)

This commit is contained in:
Anthony Fu 2021-11-16 00:27:45 +08:00 committed by GitHub
parent 6b873f15bc
commit fb2e8ccba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,14 +51,15 @@ async function bundle (nuxt: Nuxt, builder: any) {
css: resolveCSSOptions(nuxt), css: resolveCSSOptions(nuxt),
optimizeDeps: { optimizeDeps: {
exclude: [ exclude: [
...nuxt.options.build.transpile.filter(i => typeof i === 'string'),
'ufo', 'ufo',
'date-fns', 'date-fns',
'nanoid', 'nanoid',
'vue', 'vue',
'vue2', 'vue2',
'vue2-bridge', 'vue2-bridge'
'vue-demi' // TODO(Anthony): waiting for Vite's fix https://github.com/vitejs/vite/issues/5688
// ...nuxt.options.build.transpile.filter(i => typeof i === 'string'),
// 'vue-demi'
] ]
}, },
esbuild: { esbuild: {