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
This commit is contained in:
parent
ebbb237844
commit
feca3fd78b
|
@ -9,6 +9,23 @@
|
|||
["@babel/preset-typescript"]
|
||||
],
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-class-properties"
|
||||
[
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
{
|
||||
"loose": true
|
||||
}
|
||||
],
|
||||
[
|
||||
"@babel/plugin-proposal-private-methods",
|
||||
{
|
||||
"loose": true
|
||||
}
|
||||
],
|
||||
[
|
||||
"@babel/plugin-proposal-private-property-in-object",
|
||||
{
|
||||
"loose": true
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue