Skip to content

Commit fb013da

Browse files
tamatamvanyyx990803
authored andcommitted
fix: babel legacy decorator (#1163)
1 parent e65110f commit fb013da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vue/babel-preset-app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ module.exports = (context, options = {}) => {
3737
// stage 2. This includes some important transforms, e.g. dynamic import
3838
// and rest object spread.
3939
presets.push([require('@babel/preset-stage-2'), {
40-
useBuiltIns: true
40+
useBuiltIns: true,
41+
decoratorsLegacy: options.decoratorsLegacy || false
4142
}])
4243

4344
// transform runtime, but only for helpers

0 commit comments

Comments
 (0)