diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index d1067b58..76809f0d 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -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