mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-19 18:51:46 -05:00
fix: babel legacy decorator (#1163)
This commit is contained in:
committed by
Evan You
parent
e65110f3f6
commit
fb013da2dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user