diff --git a/packages/babel-preset-app/src/index.js b/packages/babel-preset-app/src/index.js index 76df87fd56..0d9f77b394 100644 --- a/packages/babel-preset-app/src/index.js +++ b/packages/babel-preset-app/src/index.js @@ -137,7 +137,8 @@ module.exports = (api, options = {}) => { // but webpack 4 doesn't support the syntax when target supports and babel transpilation is skipped // https://github.com/webpack/webpack/issues/9708 '@babel/plugin-proposal-class-properties', - '@babel/plugin-proposal-private-methods' + '@babel/plugin-proposal-private-methods', + '@babel/plugin-proposal-private-property-in-object' ], shippedProposals, forceAllTransforms @@ -156,7 +157,8 @@ module.exports = (api, options = {}) => { }], // class-properties and private-methods need same loose value [require('@babel/plugin-proposal-class-properties'), { loose: true }], - [require('@babel/plugin-proposal-private-methods'), { loose: true }] + [require('@babel/plugin-proposal-private-methods'), { loose: true }], + [require('@babel/plugin-proposal-private-property-in-object'), { loose: true }] ) // Transform runtime, but only for helpers