Skip to content

Commit

Permalink
fix(bridge): revert optimization exclusion for vue-demi (nuxt#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Nov 15, 2021
1 parent 6b873f1 commit fb2e8cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/bridge/src/vite/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ async function bundle (nuxt: Nuxt, builder: any) {
css: resolveCSSOptions(nuxt),
optimizeDeps: {
exclude: [
...nuxt.options.build.transpile.filter(i => typeof i === 'string'),
'ufo',
'date-fns',
'nanoid',
'vue',
'vue2',
'vue2-bridge',
'vue-demi'
'vue2-bridge'
// 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: {
Expand Down

0 comments on commit fb2e8cc

Please sign in to comment.