Skip to content

Commit

Permalink
fix(client): transform class private methods (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Apr 24, 2024
1 parent dfd41a9 commit 4121b38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/plugin-transform-dynamic-import": "^7.22.0",
"@babel/plugin-transform-modules-commonjs": "^7.23.4",
"@babel/plugin-transform-private-methods": "^7.24.1",
"@babel/plugin-transform-runtime": "^7.22.0",
"@babel/preset-env": "^7.22.0",
"@babel/preset-react": "^7.22.0",
Expand Down
5 changes: 4 additions & 1 deletion src/common/babel/ui-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ module.exports = function (_context: unknown, options: Record<string, any> = {})
* Can be removed once the issue is fixed and released.
* @see https://github.com/babel/babel/issues/14289
*/
plugins: [require.resolve('@babel/plugin-transform-class-properties')],
plugins: [
require.resolve('@babel/plugin-transform-private-methods'),
require.resolve('@babel/plugin-transform-class-properties'),
],
}),
],
// Latest stable ECMAScript features
Expand Down

0 comments on commit 4121b38

Please sign in to comment.