Skip to content

Commit

Permalink
fix(plugin-vue): allow to overwrite feature flags (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen authored Mar 29, 2021
1 parent 01e5e47 commit f13ec43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
return handleHotUpdate(ctx)
},

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

0 comments on commit f13ec43

Please sign in to comment.