Skip to content

Commit

Permalink
fix(babel): loose option for babel private-property-in-object (#9631)
Browse files Browse the repository at this point in the history
[release]
  • Loading branch information
clarkdo authored and pi0 committed Aug 11, 2021
1 parent 4f370e2 commit af49199
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/babel-preset-app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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
Expand All @@ -161,7 +162,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
Expand Down

0 comments on commit af49199

Please sign in to comment.