Skip to content

Commit

Permalink
fix: babel legacy decorator (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamatamvan authored and yyx990803 committed Apr 25, 2018
1 parent e65110f commit fb013da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/babel-preset-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module.exports = (context, options = {}) => {
// stage 2. This includes some important transforms, e.g. dynamic import
// and rest object spread.
presets.push([require('@babel/preset-stage-2'), {
useBuiltIns: true
useBuiltIns: true,
decoratorsLegacy: options.decoratorsLegacy || false
}])

// transform runtime, but only for helpers
Expand Down

0 comments on commit fb013da

Please sign in to comment.