Skip to content

Commit dc2b380

Browse files
committed
Try tweaking Babel to make this loose error stop
1 parent e89a0dd commit dc2b380

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.babelrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ module.exports = {
1212
// Use the equivalent of `babel-preset-modules`
1313
bugfixes: true,
1414
modules: false,
15+
loose: false,
1516
},
1617
],
1718
'@babel/preset-typescript',
1819
],
1920
plugins: [
2021
['@babel/proposal-decorators', { legacy: true }],
2122
'@babel/transform-react-jsx',
22-
'@babel/plugin-proposal-class-properties',
23-
'@babel/plugin-proposal-private-methods',
23+
['@babel/plugin-proposal-class-properties', { loose: false }],
24+
['@babel/plugin-proposal-private-methods', { loose: false }],
25+
['@babel/plugin-proposal-private-property-in-object', { loose: false }],
2426
cjs && ['@babel/transform-modules-commonjs'],
2527
[
2628
'@babel/transform-runtime',

0 commit comments

Comments
 (0)