Skip to content

Commit 5c0edf5

Browse files
committed
fix babili options so that they don't mangle our classnames
1 parent 8f1711c commit 5c0edf5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,22 @@
4242
],
4343
"env": {
4444
"production": {
45-
"presets": [
46-
"babili"
45+
"plugins": [
46+
"minify-constant-folding",
47+
"minify-dead-code-elimination",
48+
"minify-flip-comparisons",
49+
"minify-guarded-expressions",
50+
"minify-infinity",
51+
["minify-mangle-names", { "keepClassName": true, "keepFnName": true }],
52+
"minify-replace",
53+
"minify-simplify",
54+
"minify-type-constructors",
55+
"transform-member-expression-literals",
56+
"transform-merge-sibling-variables",
57+
"transform-minify-booleans",
58+
"transform-property-literals",
59+
"transform-simplify-comparison-operators",
60+
"transform-undefined-to-void"
4761
]
4862
}
4963
}

0 commit comments

Comments
 (0)