Skip to content

Commit

Permalink
Update babel config following the rename of some plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Jun 8, 2023
1 parent 6ba0307 commit 3835faf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
]
],
"plugins": [
// Though `@babel/plugin-proposal-class-properties` is already included
// Though `@babel/plugin-transform-class-properties` is already included
// in `@babel/preset-env`, we include it specifically to be able to set
// `loose` mode on it, without enabling it for all the plugins included
// in `@babel/preset-env`.
[
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-class-properties",
{
// Without `loose`, the transformation uses `Object.defineProperty` which
// obeys the spec more, but we get a bundle that's 8kB larger. That was the
Expand All @@ -44,18 +44,18 @@
}
],
[
"@babel/plugin-proposal-private-methods",
"@babel/plugin-transform-private-methods",
{
// Like `plugin-proposal-class-properties`, `loose` option is being used
// Like `plugin-transform-class-properties`, `loose` option is being used
// inside of this plugin as well. These plugins must have the same value,
// therefore it's set to true here.
"loose": true
}
],
[
"@babel/plugin-proposal-private-property-in-object",
"@babel/plugin-transform-private-property-in-object",
{
// Like `plugin-proposal-class-properties`, `loose` option is being used
// Like `plugin-transform-class-properties`, `loose` option is being used
// inside of this plugin as well. These plugins must have the same value,
// therefore it's set to true here.
"loose": true
Expand Down

0 comments on commit 3835faf

Please sign in to comment.