Skip to content

Commit ed40ee6

Browse files
committed
Work around annoying Babel "loose" warning
Ref: babel/babel#11622 (comment)
1 parent de49c87 commit ed40ee6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.babelrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = {
1919
plugins: [
2020
['@babel/proposal-decorators', { legacy: true }],
2121
'@babel/transform-react-jsx',
22+
'@babel/plugin-proposal-class-properties',
23+
'@babel/plugin-proposal-private-methods',
2224
cjs && ['@babel/transform-modules-commonjs'],
2325
[
2426
'@babel/transform-runtime',

0 commit comments

Comments
 (0)