mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(babel): loose option for babel private-property-in-object (#9631)
[release]
This commit is contained in:
parent
4f370e2043
commit
af491991eb
@ -142,7 +142,8 @@ module.exports = (api, options = {}) => {
|
|||||||
// but webpack 4 doesn't support the syntax when target supports and babel transpilation is skipped
|
// but webpack 4 doesn't support the syntax when target supports and babel transpilation is skipped
|
||||||
// https://github.com/webpack/webpack/issues/9708
|
// https://github.com/webpack/webpack/issues/9708
|
||||||
'@babel/plugin-proposal-class-properties',
|
'@babel/plugin-proposal-class-properties',
|
||||||
'@babel/plugin-proposal-private-methods'
|
'@babel/plugin-proposal-private-methods',
|
||||||
|
'@babel/plugin-proposal-private-property-in-object'
|
||||||
],
|
],
|
||||||
shippedProposals,
|
shippedProposals,
|
||||||
forceAllTransforms
|
forceAllTransforms
|
||||||
@ -161,7 +162,8 @@ module.exports = (api, options = {}) => {
|
|||||||
}],
|
}],
|
||||||
// class-properties and private-methods need same loose value
|
// class-properties and private-methods need same loose value
|
||||||
[require('@babel/plugin-proposal-class-properties'), { loose: true }],
|
[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
|
// Transform runtime, but only for helpers
|
||||||
|
Loading…
Reference in New Issue
Block a user