Skip to content

Commit f13ec43

Browse files
authored
fix(plugin-vue): allow to overwrite feature flags (#2675)
1 parent 01e5e47 commit f13ec43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/plugin-vue/src/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
7676
return handleHotUpdate(ctx)
7777
},
7878

79-
config() {
79+
config(config) {
8080
return {
8181
define: {
8282
__VUE_OPTIONS_API__: true,
83-
__VUE_PROD_DEVTOOLS__: false
83+
__VUE_PROD_DEVTOOLS__: false,
84+
...config.define
8485
},
8586
ssr: {
8687
external: ['vue', '@vue/server-renderer']

0 commit comments

Comments
 (0)