Skip to content

Commit bd6efaa

Browse files
committed
Strip erroneously included react-hot-loader code from package (linuswillner#846)
Also reduced package size by means of minification
1 parent 79c3f55 commit bd6efaa

File tree

3 files changed

+300
-6
lines changed

3 files changed

+300
-6
lines changed

.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
"@babel/plugin-proposal-optional-chaining",
1717
[ "@babel/plugin-transform-runtime", { "regenerator": true } ]
1818
]
19+
},
20+
"production": {
21+
"presets": [
22+
"@babel/react",
23+
[ "@babel/env" ],
24+
"minify"
25+
],
26+
"plugins": [
27+
"@babel/plugin-proposal-object-rest-spread",
28+
"@babel/plugin-proposal-class-properties",
29+
"@babel/plugin-proposal-optional-chaining",
30+
[ "@babel/plugin-transform-runtime", { "regenerator": true } ]
31+
],
32+
"comments": false
1933
}
2034
}
2135
}

package-lock.json

+283-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)