Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 7f97574

Browse files
0xCryptoSheikmvines
authored andcommittedOct 27, 2021
fix(build): enable loose (lighter) Babel syntax compilation
for some safe syntax transforms, assuming public class fields do not shadow an existing getter in current class / subclass or superclass. Can also be achieved with the setPublicClassFields compiler assumption. See: - https://babeljs.io/docs/en/assumptions#setpublicclassfields - https://babeljs.io/docs/en/babel-plugin-proposal-class-properties#loose
1 parent dbc9018 commit 7f97574

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed
 

‎babel.config.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@
99
["@babel/preset-typescript"]
1010
],
1111
"plugins": [
12-
"@babel/plugin-proposal-class-properties"
12+
[
13+
"@babel/plugin-proposal-class-properties",
14+
{
15+
"loose": true
16+
}
17+
],
18+
[
19+
"@babel/plugin-proposal-private-methods",
20+
{
21+
"loose": true
22+
}
23+
],
24+
[
25+
"@babel/plugin-proposal-private-property-in-object",
26+
{
27+
"loose": true
28+
}
29+
]
1330
]
1431
}

0 commit comments

Comments
 (0)
This repository has been archived.