babel-preset-es2015
Advanced tools
Comparing version 6.22.0 to 6.24.0
{ | ||
"name": "babel-preset-es2015", | ||
"version": "6.22.0", | ||
"version": "6.24.0", | ||
"description": "Babel preset for all es2015 plugins.", | ||
@@ -22,6 +22,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"babel-plugin-transform-es2015-literals": "^6.22.0", | ||
"babel-plugin-transform-es2015-modules-amd": "^6.22.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.22.0", | ||
"babel-plugin-transform-es2015-modules-amd": "^6.24.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0", | ||
"babel-plugin-transform-es2015-modules-systemjs": "^6.22.0", | ||
"babel-plugin-transform-es2015-modules-umd": "^6.22.0", | ||
"babel-plugin-transform-es2015-modules-umd": "^6.24.0", | ||
"babel-plugin-transform-es2015-object-super": "^6.22.0", | ||
@@ -38,5 +38,5 @@ "babel-plugin-transform-es2015-parameters": "^6.22.0", | ||
"devDependencies": { | ||
"babel-helper-transform-fixture-test-runner": "^6.22.0", | ||
"babel-helper-plugin-test-runner": "^6.22.0" | ||
"babel-helper-transform-fixture-test-runner": "^6.24.0", | ||
"babel-helper-plugin-test-runner": "^6.24.0" | ||
} | ||
} |
@@ -39,28 +39,20 @@ # babel-preset-es2015 | ||
* `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"]` | ||
* `spec` - Enable "spec" transformations for any plugins in this preset that allow them (Disabled by default) | ||
### `loose` | ||
```js | ||
{ | ||
presets: [ | ||
["es2015", { "loose": true }] | ||
] | ||
} | ||
{ | ||
presets: [ | ||
["es2015", { "modules": false }] | ||
] | ||
} | ||
{ | ||
presets: [ | ||
["es2015", { "loose": true, "modules": false }] | ||
] | ||
} | ||
{ | ||
presets: [ | ||
["es2015", { "spec": true }] | ||
] | ||
} | ||
``` | ||
`boolean`, defaults to `false`. | ||
Enable "loose" transformations for any plugins in this preset that allow them. | ||
### `modules` | ||
`"amd" | "umd" | "systemjs" | "commonjs" | false`, defaults to `"commonjs"`. | ||
Enable transformation of ES6 module syntax to another module type. | ||
Setting this to `false` will not transform modules. | ||
### `spec` | ||
`boolean`, defaults to `false`. | ||
Enable "spec" transformations for any plugins in this preset that allow them. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10850
58