fixes [skip ci]

This commit is contained in:
Henry Zhu 2016-09-05 23:45:21 -04:00 committed by GitHub
parent ba5aa48b0c
commit 4997e184d5

View File

@ -12,6 +12,7 @@ $ npm install --save-dev babel-preset-env
### Options
* `targets` - an object of browsers/environment versions to support. The data for this is currently at: https://github.com/babel/babel-preset-env/blob/master/src/plugins.js (It would be nice to move this to use a data source like kangax.github.io/compat-table). And we would like help to make the data is correct!
* `loose` - Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).
* `modules` - Enable transformation of ES6 module syntax to another module type (Enabled by default to `"commonjs"`).
* Can be `false` to not transform modules, or one of `["amd", "umd", "systemjs", "commonjs"]`
@ -20,7 +21,9 @@ $ npm install --save-dev babel-preset-env
{
"presets": [
["env", {
"chrome": 49,
"target": {
"chrome": 52
},
"loose": true,
"modules": false
}]