Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(.babelrc): add env preset, remove SUIR from lodash plugin
Browse files Browse the repository at this point in the history
feat(.babelrc): add env preset. remove SUIR from lodash plugin, because
of tree-shaking (native import modules vs cjs)
  • Loading branch information
Metnew committed Sep 17, 2017
1 parent c997f45 commit b84c0d9
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"plugins": [
["lodash", {"id": ["lodash", "semantic-ui-react"]}],
["lodash", {"id": ["lodash"]}],
[
"transform-runtime",
{
Expand All @@ -10,9 +10,29 @@
"moduleName": "babel-runtime"
}
],
"syntax-dynamic-import"
"syntax-dynamic-import",
[
"babel-plugin-styled-components",
{
"preprocess": true,
"ssr": true
}
]
],
"presets": [
[
"env",
{
"targets": {
"browsers": ["last 2 versions", "> 1%"]
}
}
],
"es2015",
"stage-1",
"react",
"flow"
],
"presets": ["es2015", "react", "stage-0", "flow"],
"env": {
"production": {
"presets": ["react-optimize"]
Expand Down

0 comments on commit b84c0d9

Please sign in to comment.