fix: babel legacy decorator (#1163)

This commit is contained in:
Septian A Tama (tamatamvan)
2018-04-25 21:09:11 +07:00
committed by Evan You
parent e65110f3f6
commit fb013da2dc

View File

@@ -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