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
  • Loading branch information
haoqunjiang authored Nov 22, 2022
1 parent 3f64bb2 commit 33c599d
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 33c599d

Please sign in to comment.