Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1afb127

Browse files
TrySoundFezVrasta
authored andcommitted
perf: enable babel loose mode to produce smaller bundle (#181)
1 parent 84a7bf1 commit 1afb127

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"presets": [
3-
["env", { "modules": false }],
3+
["env", { "modules": false, "loose": true }],
44
"stage-2",
55
"react"
66
],

.size-snapshot.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"dist/index.umd.js": {
3-
"bundled": 50893,
4-
"minified": 18318,
5-
"gzipped": 5870
3+
"bundled": 49663,
4+
"minified": 17800,
5+
"gzipped": 5697
66
},
77
"dist/index.umd.min.js": {
8-
"bundled": 26552,
9-
"minified": 10685,
10-
"gzipped": 3580
8+
"bundled": 25322,
9+
"minified": 10167,
10+
"gzipped": 3405
1111
},
1212
"dist/index.esm.js": {
13-
"bundled": 10870,
14-
"minified": 6168,
15-
"gzipped": 1936,
13+
"bundled": 9679,
14+
"minified": 5577,
15+
"gzipped": 1739,
1616
"treeshaked": {
1717
"rollup": {
18-
"code": 5138,
18+
"code": 4623,
1919
"import_statements": 137
2020
},
2121
"webpack": {
22-
"code": 5875
22+
"code": 5357
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)