Skip to content

Commit

Permalink
feat: dedupe the vue in client bundle by default (#11032)
Browse files Browse the repository at this point in the history
Fixes #2443
Fixes #7454
  • Loading branch information
haoqunjiang authored Nov 22, 2022
1 parent b57acfa commit fae0e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {

config(config) {
return {
resolve: {
dedupe: config.build?.ssr ? [] : ['vue']
},
define: {
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false
Expand Down

0 comments on commit fae0e23

Please sign in to comment.