Skip to content

Commit e29b6e1

Browse files
committed
feat(bundler-webpack): enable options API by default
1 parent f0d1a63 commit e29b6e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vuepress/bundler-webpack/src/config/handlePluginDefine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const handlePluginDefine = ({
2121
'__VERSION__': JSON.stringify(app.version),
2222
'__DEV__': JSON.stringify(app.env.isDev),
2323
'__SSR__': JSON.stringify(isServer),
24-
// disable options API by default
2524
// @see http://link.vuejs.org/feature-flags
26-
'__VUE_OPTIONS_API__': JSON.stringify(false),
25+
// enable options API by default
26+
'__VUE_OPTIONS_API__': JSON.stringify(true),
2727
'__VUE_PROD_DEVTOOLS__': JSON.stringify(false),
2828
},
2929
])

0 commit comments

Comments
 (0)