Skip to content

Commit 2527a9d

Browse files
committed
refactor: more explicit ssr external control via options
1 parent 96bce09 commit 2527a9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/plugin-vue/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,14 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
7272
return handleHotUpdate(ctx)
7373
},
7474

75-
config(config) {
75+
config() {
7676
return {
7777
define: {
7878
__VUE_OPTIONS_API__: true,
7979
__VUE_PROD_DEVTOOLS__: false
80+
},
81+
ssr: {
82+
external: ['vue', '@vue/server-renderer']
8083
}
8184
}
8285
},

0 commit comments

Comments
 (0)