Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Commit dfb1022

Browse files
committed
Remove syntax transformations in module output
We're inadvertently transforming the `class` and `for…of` syntax in the module output file. Browsers that support modules also support this syntax, so just strip Flow types during compilation.
1 parent 0071a80 commit dfb1022

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,7 @@
4343
"babel": {
4444
"env": {
4545
"esm": {
46-
"presets": [
47-
[
48-
"@babel/env",
49-
{
50-
"modules": false
51-
}
52-
],
53-
"@babel/flow"
54-
]
46+
"presets": ["@babel/flow"]
5547
},
5648
"umd": {
5749
"plugins": [

0 commit comments

Comments
 (0)