Use babel-preset-env instead of the yearly presets.

This allows only the transpilation needed for the supported browsers to
be done. It also allows us to use the upgrades from ES2016 and ES2017
without needing to add a seperate preset.
This commit is contained in:
Caleb
2017-10-14 09:15:39 -06:00
committed by Shawn Erquhart
parent 8b5dc61e6c
commit c58e2eeb5c
3 changed files with 59 additions and 24 deletions

View File

@ -1,5 +1,5 @@
{
"presets": [["es2015", { "modules": false }], "stage-1", "react"],
"presets": [["env", { "modules": false }], "stage-1", "react"],
"plugins": [
"react-hot-loader/babel",
"lodash",