Skip to content

Commit ab6811b

Browse files
committed
Required update to babel config
+ Squelches warnings on console when compiling regarding need to sync up `loose` config setting on this newly added proposal.
1 parent ed1fcc3 commit ab6811b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

configureWebpack.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ async function configureWebpack(env) {
412412

413413
// Support classes level fields - must come after decorators plugin and be loose.
414414
['@babel/plugin-proposal-class-properties', {loose: true}],
415-
// Must also configure private-methods plugin, even if we are not currently using,
416-
// to config the "loose" setting to match plugin-proposal-class-properties.
415+
// Must also configure private-* plugins below to config the "loose" setting
416+
// to match plugin-proposal-class-properties.
417417
["@babel/plugin-proposal-private-methods", {loose: true}],
418+
["@babel/plugin-proposal-private-property-in-object", {loose: true}],
418419

419420
// Support `let x = foo?.bar`.
420421
['@babel/plugin-proposal-optional-chaining'],

0 commit comments

Comments
 (0)