Skip to content

Commit

Permalink
Merge pull request #670 from anajavi/perf/runtime-version
Browse files Browse the repository at this point in the history
Set babel runtime version to make smaller bundle
  • Loading branch information
PaulLeCam authored Mar 12, 2020
2 parents 3e28e34 + eec0fac commit c1e1ac9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@babel/preset-flow",
"@babel/preset-react"
],
"plugins": ["@babel/plugin-transform-runtime"]
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.8.3" }]]
},
"rollup": {
"presets": [
Expand All @@ -40,9 +40,7 @@
"@babel/preset-flow",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.8.3" }]]
},
"jsnext": {
"presets": [
Expand All @@ -61,7 +59,10 @@
"@babel/preset-react"
],
"plugins": [
["@babel/plugin-transform-runtime", { "useESModules": true }]
[
"@babel/plugin-transform-runtime",
{ "useESModules": true, "version": "^7.8.3" }
]
]
}
}
Expand Down

0 comments on commit c1e1ac9

Please sign in to comment.