Skip to content

Commit 98888e6

Browse files
committed
fix: disable loose mode for class-properties
1 parent b35c0e5 commit 98888e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ module.exports = {
3434
loader: 'babel-loader-8',
3535
options: {
3636
plugins: [
37-
// https://github.com/babel/ember-cli-babel/blob/036723709e26aba68eee1d5a9df49f97944e435b/index.js#L359-L385
37+
// https://github.com/babel/ember-cli-babel/blob/4c3b9091d7c711ecb804a52226409b409a702d82/lib/babel-options-util.js#L398
3838
[
3939
require.resolve('@babel/plugin-transform-typescript'),
4040
{ allowDeclareFields: true }
4141
],
4242

43-
// https://github.com/babel/ember-cli-babel/blob/036723709e26aba68eee1d5a9df49f97944e435b/index.js#L403-L409
43+
// https://github.com/babel/ember-cli-babel/blob/4c3b9091d7c711ecb804a52226409b409a702d82/lib/babel-options-util.js#L324
4444
[
4545
require.resolve('@babel/plugin-proposal-decorators'),
4646
{ legacy: true }
4747
],
4848

49-
// https://github.com/babel/ember-cli-babel/blob/036723709e26aba68eee1d5a9df49f97944e435b/index.js#L420-L426
49+
// https://github.com/babel/ember-cli-babel/blob/4c3b9091d7c711ecb804a52226409b409a702d82/lib/babel-options-util.js#L348-L349
5050
[
5151
require.resolve('@babel/plugin-proposal-class-properties'),
52-
{ loose: true }
52+
{ loose: false }
5353
],
5454

5555
// https://github.com/webpack/webpack/issues/10227

0 commit comments

Comments
 (0)