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 committed Mar 29, 2021
1 parent 631ba04 commit a4acc16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/plugin-vue/src/index.ts
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 a4acc16

Please sign in to comment.