Skip to content

Commit

Permalink
refactor: more explicit ssr external control via options
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 18, 2021
1 parent 96bce09 commit 2527a9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
return handleHotUpdate(ctx)
},

config(config) {
config() {
return {
define: {
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false
},
ssr: {
external: ['vue', '@vue/server-renderer']
}
}
},
Expand Down

0 comments on commit 2527a9d

Please sign in to comment.