fix(babel-preset-app): use loose mode for babel class plugin (#6435)

This commit is contained in:
Xin Du (Clark) 2019-09-20 08:53:58 +01:00 committed by Pooya Parsa
parent 2f0b33f5ed
commit 75f8564cdc

View File

@ -132,7 +132,7 @@ module.exports = (api, options = {}) => {
decoratorsBeforeExport,
legacy: decoratorsLegacy !== false
}],
[require('@babel/plugin-proposal-class-properties'), { loose }]
[require('@babel/plugin-proposal-class-properties'), { loose: true }]
)
// Transform runtime, but only for helpers