remove es20xx prefixes from plugins and rename folders (#6575)
This commit is contained in:
parent
92a3caeb9c
commit
9ac326b075
@ -115,7 +115,7 @@ $ TEST_ONLY=babel-cli make test
|
||||
`TEST_ONLY` will also match substrings of the package name:
|
||||
|
||||
```sh
|
||||
# Run tests for the babel-plugin-transform-es2015-classes package.
|
||||
# Run tests for the babel-plugin-transform-classes package.
|
||||
$ TEST_ONLY=es2015-class make test
|
||||
```
|
||||
|
||||
|
||||
@ -235,13 +235,13 @@ An array of plugins to always include.
|
||||
|
||||
Valid options include any:
|
||||
|
||||
- [Babel plugins](https://github.com/babel/babel-preset-env/blob/master/data/plugin-features.js) - both with (`@babel/plugin-transform-es2015-spread`) and without prefix (`transform-es2015-spread`) are supported.
|
||||
- [Babel plugins](https://github.com/babel/babel-preset-env/blob/master/data/plugin-features.js) - both with (`@babel/plugin-transform-spread`) and without prefix (`transform-spread`) are supported.
|
||||
|
||||
- [Built-ins](https://github.com/babel/babel-preset-env/blob/master/data/built-in-features.js), such as `map`, `set`, or `object.assign`.
|
||||
|
||||
This option is useful if there is a bug in a native implementation, or a combination of a non-supported feature + a supported one doesn't work.
|
||||
|
||||
For example, Node 4 supports native classes but not spread. If `super` is used with a spread argument, then the `transform-es2015-classes` transform needs to be `include`d, as it is not possible to transpile a spread with `super` otherwise.
|
||||
For example, Node 4 supports native classes but not spread. If `super` is used with a spread argument, then the `transform-classes` transform needs to be `include`d, as it is not possible to transpile a spread with `super` otherwise.
|
||||
|
||||
> NOTE: The `include` and `exclude` options _only_ work with the [plugins included with this preset](https://github.com/babel/babel-preset-env/blob/master/data/plugin-features.js); so, for example, including `proposal-do-expressions` or excluding `proposal-function-bind` will throw errors. To use a plugin _not_ included with this preset, add them to your [config](https://babeljs.io/docs/usage/babelrc/) directly.
|
||||
|
||||
@ -560,7 +560,7 @@ Using polyfills:
|
||||
"targets": {
|
||||
"browsers": ["last 2 versions", "safari >= 7"]
|
||||
},
|
||||
"include": ["@babel/transform-es2015-arrow-functions", "es6.map"],
|
||||
"include": ["@babel/transform-arrow-functions", "es6.map"],
|
||||
"exclude": ["@babel/transform-regenerator", "es6.set"]
|
||||
}]
|
||||
]
|
||||
|
||||
@ -1,101 +1,101 @@
|
||||
const es2015 = {
|
||||
"check-es2015-constants": {
|
||||
"check-constants": {
|
||||
features: [
|
||||
"const",
|
||||
],
|
||||
},
|
||||
"transform-es2015-arrow-functions": {
|
||||
"transform-arrow-functions": {
|
||||
features: [
|
||||
"arrow functions",
|
||||
],
|
||||
},
|
||||
"transform-es2015-block-scoped-functions": {
|
||||
"transform-block-scoped-functions": {
|
||||
features: [
|
||||
"block-level function declaration"
|
||||
],
|
||||
},
|
||||
"transform-es2015-block-scoping": {
|
||||
"transform-block-scoping": {
|
||||
features: [
|
||||
"const",
|
||||
"let",
|
||||
],
|
||||
},
|
||||
"transform-es2015-classes": {
|
||||
"transform-classes": {
|
||||
features: [
|
||||
"class",
|
||||
"super",
|
||||
],
|
||||
},
|
||||
"transform-es2015-computed-properties": {
|
||||
"transform-computed-properties": {
|
||||
features: [
|
||||
"object literal extensions / computed properties",
|
||||
],
|
||||
},
|
||||
"transform-es2015-destructuring": {
|
||||
"transform-destructuring": {
|
||||
features: [
|
||||
"destructuring, assignment",
|
||||
"destructuring, declarations",
|
||||
"destructuring, parameters",
|
||||
],
|
||||
},
|
||||
"transform-es2015-duplicate-keys": {
|
||||
"transform-duplicate-keys": {
|
||||
features: [
|
||||
"miscellaneous / duplicate property names in strict mode",
|
||||
],
|
||||
},
|
||||
"transform-es2015-for-of": {
|
||||
"transform-for-of": {
|
||||
features: [
|
||||
"for..of loops",
|
||||
],
|
||||
},
|
||||
"transform-es2015-function-name": {
|
||||
"transform-function-name": {
|
||||
features: [
|
||||
"function \"name\" property",
|
||||
]
|
||||
},
|
||||
"transform-es2015-literals": {
|
||||
"transform-literals": {
|
||||
features: [
|
||||
"Unicode code point escapes",
|
||||
],
|
||||
},
|
||||
"transform-es2015-object-super": {
|
||||
"transform-object-super": {
|
||||
features: [
|
||||
"super",
|
||||
],
|
||||
},
|
||||
"transform-es2015-parameters": {
|
||||
"transform-parameters": {
|
||||
features: [
|
||||
"default function parameters",
|
||||
"rest parameters",
|
||||
],
|
||||
},
|
||||
"transform-es2015-shorthand-properties": {
|
||||
"transform-shorthand-properties": {
|
||||
features: [
|
||||
"object literal extensions / shorthand properties",
|
||||
],
|
||||
},
|
||||
"transform-es2015-spread": {
|
||||
"transform-spread": {
|
||||
features: [
|
||||
"spread (...) operator",
|
||||
],
|
||||
},
|
||||
"transform-es2015-sticky-regex": {
|
||||
"transform-sticky-regex": {
|
||||
features: [
|
||||
"RegExp \"y\" and \"u\" flags / \"y\" flag, lastIndex",
|
||||
"RegExp \"y\" and \"u\" flags / \"y\" flag",
|
||||
],
|
||||
},
|
||||
"transform-es2015-template-literals": {
|
||||
"transform-template-literals": {
|
||||
features: [
|
||||
"template literals",
|
||||
],
|
||||
},
|
||||
"transform-es2015-typeof-symbol": {
|
||||
"transform-typeof-symbol": {
|
||||
features: [
|
||||
"Symbol / typeof support"
|
||||
],
|
||||
},
|
||||
"transform-es2015-unicode-regex": {
|
||||
"transform-unicode-regex": {
|
||||
features: [
|
||||
"RegExp \"y\" and \"u\" flags / \"u\" flag, case folding",
|
||||
"RegExp \"y\" and \"u\" flags / \"u\" flag, Unicode code point escapes",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"check-es2015-constants": {
|
||||
"check-constants": {
|
||||
"chrome": "49",
|
||||
"edge": "14",
|
||||
"firefox": "51",
|
||||
@ -9,7 +9,7 @@
|
||||
"opera": "36",
|
||||
"electron": "1"
|
||||
},
|
||||
"transform-es2015-arrow-functions": {
|
||||
"transform-arrow-functions": {
|
||||
"chrome": "47",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
@ -19,7 +19,7 @@
|
||||
"opera": "34",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-es2015-block-scoped-functions": {
|
||||
"transform-block-scoped-functions": {
|
||||
"chrome": "41",
|
||||
"edge": "12",
|
||||
"firefox": "46",
|
||||
@ -30,7 +30,7 @@
|
||||
"opera": "28",
|
||||
"electron": "0.24"
|
||||
},
|
||||
"transform-es2015-block-scoping": {
|
||||
"transform-block-scoping": {
|
||||
"chrome": "49",
|
||||
"edge": "14",
|
||||
"firefox": "51",
|
||||
@ -40,7 +40,7 @@
|
||||
"opera": "36",
|
||||
"electron": "1"
|
||||
},
|
||||
"transform-es2015-classes": {
|
||||
"transform-classes": {
|
||||
"chrome": "46",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
@ -50,7 +50,7 @@
|
||||
"opera": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-es2015-computed-properties": {
|
||||
"transform-computed-properties": {
|
||||
"chrome": "44",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
@ -60,7 +60,7 @@
|
||||
"opera": "31",
|
||||
"electron": "0.31"
|
||||
},
|
||||
"transform-es2015-destructuring": {
|
||||
"transform-destructuring": {
|
||||
"chrome": "51",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
@ -69,7 +69,7 @@
|
||||
"opera": "38",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-es2015-duplicate-keys": {
|
||||
"transform-duplicate-keys": {
|
||||
"chrome": "42",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
@ -79,7 +79,7 @@
|
||||
"opera": "29",
|
||||
"electron": "0.27"
|
||||
},
|
||||
"transform-es2015-for-of": {
|
||||
"transform-for-of": {
|
||||
"chrome": "51",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
@ -89,7 +89,7 @@
|
||||
"opera": "38",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-es2015-function-name": {
|
||||
"transform-function-name": {
|
||||
"chrome": "51",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
@ -98,7 +98,7 @@
|
||||
"opera": "38",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-es2015-literals": {
|
||||
"transform-literals": {
|
||||
"chrome": "44",
|
||||
"edge": "12",
|
||||
"firefox": "53",
|
||||
@ -108,7 +108,7 @@
|
||||
"opera": "31",
|
||||
"electron": "0.31"
|
||||
},
|
||||
"transform-es2015-object-super": {
|
||||
"transform-object-super": {
|
||||
"chrome": "46",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
@ -118,7 +118,7 @@
|
||||
"opera": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-es2015-parameters": {
|
||||
"transform-parameters": {
|
||||
"chrome": "49",
|
||||
"edge": "14",
|
||||
"firefox": "53",
|
||||
@ -128,7 +128,7 @@
|
||||
"opera": "36",
|
||||
"electron": "1"
|
||||
},
|
||||
"transform-es2015-shorthand-properties": {
|
||||
"transform-shorthand-properties": {
|
||||
"chrome": "43",
|
||||
"edge": "12",
|
||||
"firefox": "33",
|
||||
@ -138,7 +138,7 @@
|
||||
"opera": "30",
|
||||
"electron": "0.29"
|
||||
},
|
||||
"transform-es2015-spread": {
|
||||
"transform-spread": {
|
||||
"chrome": "46",
|
||||
"edge": "13",
|
||||
"firefox": "36",
|
||||
@ -148,7 +148,7 @@
|
||||
"opera": "33",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-es2015-sticky-regex": {
|
||||
"transform-sticky-regex": {
|
||||
"chrome": "49",
|
||||
"edge": "13",
|
||||
"firefox": "3",
|
||||
@ -158,7 +158,7 @@
|
||||
"opera": "36",
|
||||
"electron": "1"
|
||||
},
|
||||
"transform-es2015-template-literals": {
|
||||
"transform-template-literals": {
|
||||
"chrome": "41",
|
||||
"edge": "13",
|
||||
"firefox": "34",
|
||||
@ -168,7 +168,7 @@
|
||||
"opera": "28",
|
||||
"electron": "0.24"
|
||||
},
|
||||
"transform-es2015-typeof-symbol": {
|
||||
"transform-typeof-symbol": {
|
||||
"chrome": "38",
|
||||
"edge": "12",
|
||||
"firefox": "36",
|
||||
@ -178,7 +178,7 @@
|
||||
"opera": "25",
|
||||
"electron": "0.2"
|
||||
},
|
||||
"transform-es2015-unicode-regex": {
|
||||
"transform-unicode-regex": {
|
||||
"chrome": "50",
|
||||
"edge": "13",
|
||||
"firefox": "46",
|
||||
|
||||
@ -11,34 +11,34 @@
|
||||
"build-data": "node ./scripts/build-data.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-check-es2015-constants": "7.0.0-beta.3",
|
||||
"@babel/plugin-check-constants": "7.0.0-beta.3",
|
||||
"@babel/plugin-syntax-async-generators": "7.0.0-beta.3",
|
||||
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.3",
|
||||
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.3",
|
||||
"@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-async-to-generator": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-arrow-functions": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-block-scoped-functions": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-block-scoping": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-classes": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-computed-properties": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-destructuring": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-duplicate-keys": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-for-of": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-function-name": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-literals": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-modules-amd": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-modules-commonjs": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-modules-systemjs": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-modules-umd": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-object-super": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-parameters": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-shorthand-properties": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-spread": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-sticky-regex": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-template-literals": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-typeof-symbol": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-es2015-unicode-regex": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-block-scoping": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-classes": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-computed-properties": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-destructuring": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-duplicate-keys": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-for-of": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-function-name": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-literals": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-modules-amd": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-modules-systemjs": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-modules-umd": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-object-super": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-parameters": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-spread": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-template-literals": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-typeof-symbol": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.3",
|
||||
"@babel/plugin-transform-new-target": "7.0.0-beta.3",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.3",
|
||||
|
||||
@ -1,32 +1,32 @@
|
||||
export default {
|
||||
"check-es2015-constants": require("@babel/plugin-check-es2015-constants"),
|
||||
"check-constants": require("@babel/plugin-check-constants"),
|
||||
"syntax-async-generators": require("@babel/plugin-syntax-async-generators"),
|
||||
"syntax-object-rest-spread": require("@babel/plugin-syntax-object-rest-spread"),
|
||||
"syntax-optional-catch-binding": require("@babel/plugin-syntax-optional-catch-binding"),
|
||||
"transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"),
|
||||
"proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"),
|
||||
"transform-es2015-arrow-functions": require("@babel/plugin-transform-es2015-arrow-functions"),
|
||||
"transform-es2015-block-scoped-functions": require("@babel/plugin-transform-es2015-block-scoped-functions"),
|
||||
"transform-es2015-block-scoping": require("@babel/plugin-transform-es2015-block-scoping"),
|
||||
"transform-es2015-classes": require("@babel/plugin-transform-es2015-classes"),
|
||||
"transform-es2015-computed-properties": require("@babel/plugin-transform-es2015-computed-properties"),
|
||||
"transform-es2015-destructuring": require("@babel/plugin-transform-es2015-destructuring"),
|
||||
"transform-es2015-duplicate-keys": require("@babel/plugin-transform-es2015-duplicate-keys"),
|
||||
"transform-es2015-for-of": require("@babel/plugin-transform-es2015-for-of"),
|
||||
"transform-es2015-function-name": require("@babel/plugin-transform-es2015-function-name"),
|
||||
"transform-es2015-literals": require("@babel/plugin-transform-es2015-literals"),
|
||||
"transform-es2015-modules-amd": require("@babel/plugin-transform-es2015-modules-amd"),
|
||||
"transform-es2015-modules-commonjs": require("@babel/plugin-transform-es2015-modules-commonjs"),
|
||||
"transform-es2015-modules-systemjs": require("@babel/plugin-transform-es2015-modules-systemjs"),
|
||||
"transform-es2015-modules-umd": require("@babel/plugin-transform-es2015-modules-umd"),
|
||||
"transform-es2015-object-super": require("@babel/plugin-transform-es2015-object-super"),
|
||||
"transform-es2015-parameters": require("@babel/plugin-transform-es2015-parameters"),
|
||||
"transform-es2015-shorthand-properties": require("@babel/plugin-transform-es2015-shorthand-properties"),
|
||||
"transform-es2015-spread": require("@babel/plugin-transform-es2015-spread"),
|
||||
"transform-es2015-sticky-regex": require("@babel/plugin-transform-es2015-sticky-regex"),
|
||||
"transform-es2015-template-literals": require("@babel/plugin-transform-es2015-template-literals"),
|
||||
"transform-es2015-typeof-symbol": require("@babel/plugin-transform-es2015-typeof-symbol"),
|
||||
"transform-es2015-unicode-regex": require("@babel/plugin-transform-es2015-unicode-regex"),
|
||||
"transform-arrow-functions": require("@babel/plugin-transform-arrow-functions"),
|
||||
"transform-block-scoped-functions": require("@babel/plugin-transform-block-scoped-functions"),
|
||||
"transform-block-scoping": require("@babel/plugin-transform-block-scoping"),
|
||||
"transform-classes": require("@babel/plugin-transform-classes"),
|
||||
"transform-computed-properties": require("@babel/plugin-transform-computed-properties"),
|
||||
"transform-destructuring": require("@babel/plugin-transform-destructuring"),
|
||||
"transform-duplicate-keys": require("@babel/plugin-transform-duplicate-keys"),
|
||||
"transform-for-of": require("@babel/plugin-transform-for-of"),
|
||||
"transform-function-name": require("@babel/plugin-transform-function-name"),
|
||||
"transform-literals": require("@babel/plugin-transform-literals"),
|
||||
"transform-modules-amd": require("@babel/plugin-transform-modules-amd"),
|
||||
"transform-modules-commonjs": require("@babel/plugin-transform-modules-commonjs"),
|
||||
"transform-modules-systemjs": require("@babel/plugin-transform-modules-systemjs"),
|
||||
"transform-modules-umd": require("@babel/plugin-transform-modules-umd"),
|
||||
"transform-object-super": require("@babel/plugin-transform-object-super"),
|
||||
"transform-parameters": require("@babel/plugin-transform-parameters"),
|
||||
"transform-shorthand-properties": require("@babel/plugin-transform-shorthand-properties"),
|
||||
"transform-spread": require("@babel/plugin-transform-spread"),
|
||||
"transform-sticky-regex": require("@babel/plugin-transform-sticky-regex"),
|
||||
"transform-template-literals": require("@babel/plugin-transform-template-literals"),
|
||||
"transform-typeof-symbol": require("@babel/plugin-transform-typeof-symbol"),
|
||||
"transform-unicode-regex": require("@babel/plugin-transform-unicode-regex"),
|
||||
"transform-exponentiation-operator": require("@babel/plugin-transform-exponentiation-operator"),
|
||||
"transform-new-target": require("@babel/plugin-transform-new-target"),
|
||||
"proposal-object-rest-spread": require("@babel/plugin-proposal-object-rest-spread"),
|
||||
|
||||
@ -211,7 +211,7 @@ export default function buildPreset(
|
||||
const pluginUseBuiltIns = useBuiltIns !== false;
|
||||
|
||||
// NOTE: not giving spec here yet to avoid compatibility issues when
|
||||
// transform-es2015-modules-commonjs gets its spec mode
|
||||
// transform-modules-commonjs gets its spec mode
|
||||
if (modules !== false && moduleTransformations[modules]) {
|
||||
plugins.push([getPlugin(moduleTransformations[modules]), { loose }]);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
amd: "transform-es2015-modules-amd",
|
||||
commonjs: "transform-es2015-modules-commonjs",
|
||||
systemjs: "transform-es2015-modules-systemjs",
|
||||
umd: "transform-es2015-modules-umd",
|
||||
amd: "transform-modules-amd",
|
||||
commonjs: "transform-modules-commonjs",
|
||||
systemjs: "transform-modules-systemjs",
|
||||
umd: "transform-modules-umd",
|
||||
};
|
||||
|
||||
@ -8,25 +8,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "android":"4" }
|
||||
transform-es2015-arrow-functions { "android":"4" }
|
||||
transform-es2015-block-scoped-functions { "android":"4" }
|
||||
transform-es2015-block-scoping { "android":"4" }
|
||||
transform-es2015-classes { "android":"4" }
|
||||
transform-es2015-computed-properties { "android":"4" }
|
||||
transform-es2015-destructuring { "android":"4" }
|
||||
transform-es2015-duplicate-keys { "android":"4" }
|
||||
transform-es2015-for-of { "android":"4" }
|
||||
transform-es2015-function-name { "android":"4" }
|
||||
transform-es2015-literals { "android":"4" }
|
||||
transform-es2015-object-super { "android":"4" }
|
||||
transform-es2015-parameters { "android":"4" }
|
||||
transform-es2015-shorthand-properties { "android":"4" }
|
||||
transform-es2015-spread { "android":"4" }
|
||||
transform-es2015-sticky-regex { "android":"4" }
|
||||
transform-es2015-template-literals { "android":"4" }
|
||||
transform-es2015-typeof-symbol { "android":"4" }
|
||||
transform-es2015-unicode-regex { "android":"4" }
|
||||
check-constants { "android":"4" }
|
||||
transform-arrow-functions { "android":"4" }
|
||||
transform-block-scoped-functions { "android":"4" }
|
||||
transform-block-scoping { "android":"4" }
|
||||
transform-classes { "android":"4" }
|
||||
transform-computed-properties { "android":"4" }
|
||||
transform-destructuring { "android":"4" }
|
||||
transform-duplicate-keys { "android":"4" }
|
||||
transform-for-of { "android":"4" }
|
||||
transform-function-name { "android":"4" }
|
||||
transform-literals { "android":"4" }
|
||||
transform-object-super { "android":"4" }
|
||||
transform-parameters { "android":"4" }
|
||||
transform-shorthand-properties { "android":"4" }
|
||||
transform-spread { "android":"4" }
|
||||
transform-sticky-regex { "android":"4" }
|
||||
transform-template-literals { "android":"4" }
|
||||
transform-typeof-symbol { "android":"4" }
|
||||
transform-unicode-regex { "android":"4" }
|
||||
transform-new-target { "android":"4" }
|
||||
transform-regenerator { "android":"4" }
|
||||
transform-exponentiation-operator { "android":"4" }
|
||||
|
||||
@ -8,9 +8,9 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
transform-es2015-destructuring { "node":"6" }
|
||||
transform-es2015-for-of { "node":"6" }
|
||||
transform-es2015-function-name { "node":"6" }
|
||||
transform-destructuring { "node":"6" }
|
||||
transform-for-of { "node":"6" }
|
||||
transform-function-name { "node":"6" }
|
||||
transform-exponentiation-operator { "node":"6" }
|
||||
transform-async-to-generator { "node":"6" }
|
||||
|
||||
|
||||
@ -11,25 +11,25 @@ Using targets:
|
||||
Using modules transform: false
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {}
|
||||
transform-es2015-arrow-functions {}
|
||||
transform-es2015-block-scoped-functions {}
|
||||
transform-es2015-block-scoping {}
|
||||
transform-es2015-classes {}
|
||||
transform-es2015-computed-properties {}
|
||||
transform-es2015-destructuring {}
|
||||
transform-es2015-duplicate-keys {}
|
||||
transform-es2015-for-of {}
|
||||
transform-es2015-function-name {}
|
||||
transform-es2015-literals {}
|
||||
transform-es2015-object-super {}
|
||||
transform-es2015-parameters {}
|
||||
transform-es2015-shorthand-properties {}
|
||||
transform-es2015-spread {}
|
||||
transform-es2015-sticky-regex {}
|
||||
transform-es2015-template-literals {}
|
||||
transform-es2015-typeof-symbol {}
|
||||
transform-es2015-unicode-regex {}
|
||||
check-constants {}
|
||||
transform-arrow-functions {}
|
||||
transform-block-scoped-functions {}
|
||||
transform-block-scoping {}
|
||||
transform-classes {}
|
||||
transform-computed-properties {}
|
||||
transform-destructuring {}
|
||||
transform-duplicate-keys {}
|
||||
transform-for-of {}
|
||||
transform-function-name {}
|
||||
transform-literals {}
|
||||
transform-object-super {}
|
||||
transform-parameters {}
|
||||
transform-shorthand-properties {}
|
||||
transform-spread {}
|
||||
transform-sticky-regex {}
|
||||
transform-template-literals {}
|
||||
transform-typeof-symbol {}
|
||||
transform-unicode-regex {}
|
||||
transform-new-target {}
|
||||
transform-regenerator {}
|
||||
transform-exponentiation-operator {}
|
||||
|
||||
@ -10,25 +10,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "ie":"10" }
|
||||
transform-es2015-arrow-functions { "ie":"10" }
|
||||
transform-es2015-block-scoped-functions { "ie":"10" }
|
||||
transform-es2015-block-scoping { "ie":"10" }
|
||||
transform-es2015-classes { "ie":"10" }
|
||||
transform-es2015-computed-properties { "ie":"10" }
|
||||
transform-es2015-destructuring { "ie":"10", "node":"6" }
|
||||
transform-es2015-duplicate-keys { "ie":"10" }
|
||||
transform-es2015-for-of { "ie":"10", "node":"6" }
|
||||
transform-es2015-function-name { "ie":"10", "node":"6" }
|
||||
transform-es2015-literals { "ie":"10" }
|
||||
transform-es2015-object-super { "ie":"10" }
|
||||
transform-es2015-parameters { "ie":"10" }
|
||||
transform-es2015-shorthand-properties { "ie":"10" }
|
||||
transform-es2015-spread { "ie":"10" }
|
||||
transform-es2015-sticky-regex { "ie":"10" }
|
||||
transform-es2015-template-literals { "ie":"10" }
|
||||
transform-es2015-typeof-symbol { "ie":"10" }
|
||||
transform-es2015-unicode-regex { "ie":"10" }
|
||||
check-constants { "ie":"10" }
|
||||
transform-arrow-functions { "ie":"10" }
|
||||
transform-block-scoped-functions { "ie":"10" }
|
||||
transform-block-scoping { "ie":"10" }
|
||||
transform-classes { "ie":"10" }
|
||||
transform-computed-properties { "ie":"10" }
|
||||
transform-destructuring { "ie":"10", "node":"6" }
|
||||
transform-duplicate-keys { "ie":"10" }
|
||||
transform-for-of { "ie":"10", "node":"6" }
|
||||
transform-function-name { "ie":"10", "node":"6" }
|
||||
transform-literals { "ie":"10" }
|
||||
transform-object-super { "ie":"10" }
|
||||
transform-parameters { "ie":"10" }
|
||||
transform-shorthand-properties { "ie":"10" }
|
||||
transform-spread { "ie":"10" }
|
||||
transform-sticky-regex { "ie":"10" }
|
||||
transform-template-literals { "ie":"10" }
|
||||
transform-typeof-symbol { "ie":"10" }
|
||||
transform-unicode-regex { "ie":"10" }
|
||||
transform-new-target { "ie":"10" }
|
||||
transform-regenerator { "ie":"10" }
|
||||
transform-exponentiation-operator { "ie":"10", "node":"6" }
|
||||
|
||||
@ -15,14 +15,14 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "electron":"0.36" }
|
||||
transform-es2015-block-scoping { "electron":"0.36" }
|
||||
transform-es2015-destructuring { "electron":"0.36" }
|
||||
transform-es2015-for-of { "electron":"0.36" }
|
||||
transform-es2015-function-name { "electron":"0.36" }
|
||||
transform-es2015-parameters { "electron":"0.36" }
|
||||
transform-es2015-sticky-regex { "electron":"0.36" }
|
||||
transform-es2015-unicode-regex { "electron":"0.36" }
|
||||
check-constants { "electron":"0.36" }
|
||||
transform-block-scoping { "electron":"0.36" }
|
||||
transform-destructuring { "electron":"0.36" }
|
||||
transform-for-of { "electron":"0.36" }
|
||||
transform-function-name { "electron":"0.36" }
|
||||
transform-parameters { "electron":"0.36" }
|
||||
transform-sticky-regex { "electron":"0.36" }
|
||||
transform-unicode-regex { "electron":"0.36" }
|
||||
transform-regenerator { "electron":"0.36" }
|
||||
transform-exponentiation-operator { "electron":"0.36" }
|
||||
transform-async-to-generator { "electron":"0.36" }
|
||||
|
||||
@ -8,25 +8,25 @@ Using targets:
|
||||
Using modules transform: false
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {}
|
||||
transform-es2015-arrow-functions {}
|
||||
transform-es2015-block-scoped-functions {}
|
||||
transform-es2015-block-scoping {}
|
||||
transform-es2015-classes {}
|
||||
transform-es2015-computed-properties {}
|
||||
transform-es2015-destructuring {}
|
||||
transform-es2015-duplicate-keys {}
|
||||
transform-es2015-for-of {}
|
||||
transform-es2015-function-name {}
|
||||
transform-es2015-literals {}
|
||||
transform-es2015-object-super {}
|
||||
transform-es2015-parameters {}
|
||||
transform-es2015-shorthand-properties {}
|
||||
transform-es2015-spread {}
|
||||
transform-es2015-sticky-regex {}
|
||||
transform-es2015-template-literals {}
|
||||
transform-es2015-typeof-symbol {}
|
||||
transform-es2015-unicode-regex {}
|
||||
check-constants {}
|
||||
transform-arrow-functions {}
|
||||
transform-block-scoped-functions {}
|
||||
transform-block-scoping {}
|
||||
transform-classes {}
|
||||
transform-computed-properties {}
|
||||
transform-destructuring {}
|
||||
transform-duplicate-keys {}
|
||||
transform-for-of {}
|
||||
transform-function-name {}
|
||||
transform-literals {}
|
||||
transform-object-super {}
|
||||
transform-parameters {}
|
||||
transform-shorthand-properties {}
|
||||
transform-spread {}
|
||||
transform-sticky-regex {}
|
||||
transform-template-literals {}
|
||||
transform-typeof-symbol {}
|
||||
transform-unicode-regex {}
|
||||
transform-new-target {}
|
||||
transform-regenerator {}
|
||||
transform-exponentiation-operator {}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"exclude": [
|
||||
"transform-async-to-generator",
|
||||
"transform-regenerator",
|
||||
"transform-es2015-parameters"
|
||||
"transform-parameters"
|
||||
],
|
||||
"targets": {
|
||||
"firefox": 52,
|
||||
|
||||
@ -16,10 +16,10 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
transform-es2015-destructuring { "firefox":"52" }
|
||||
transform-es2015-for-of { "firefox":"52" }
|
||||
transform-es2015-function-name { "firefox":"52" }
|
||||
transform-es2015-literals { "firefox":"52" }
|
||||
transform-destructuring { "firefox":"52" }
|
||||
transform-for-of { "firefox":"52" }
|
||||
transform-function-name { "firefox":"52" }
|
||||
transform-literals { "firefox":"52" }
|
||||
|
||||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set.
|
||||
src/in.js -> lib/in.js
|
||||
|
||||
@ -6,25 +6,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {}
|
||||
transform-es2015-arrow-functions {}
|
||||
transform-es2015-block-scoped-functions {}
|
||||
transform-es2015-block-scoping {}
|
||||
transform-es2015-classes {}
|
||||
transform-es2015-computed-properties {}
|
||||
transform-es2015-destructuring {}
|
||||
transform-es2015-duplicate-keys {}
|
||||
transform-es2015-for-of {}
|
||||
transform-es2015-function-name {}
|
||||
transform-es2015-literals {}
|
||||
transform-es2015-object-super {}
|
||||
transform-es2015-parameters {}
|
||||
transform-es2015-shorthand-properties {}
|
||||
transform-es2015-spread {}
|
||||
transform-es2015-sticky-regex {}
|
||||
transform-es2015-template-literals {}
|
||||
transform-es2015-typeof-symbol {}
|
||||
transform-es2015-unicode-regex {}
|
||||
check-constants {}
|
||||
transform-arrow-functions {}
|
||||
transform-block-scoped-functions {}
|
||||
transform-block-scoping {}
|
||||
transform-classes {}
|
||||
transform-computed-properties {}
|
||||
transform-destructuring {}
|
||||
transform-duplicate-keys {}
|
||||
transform-for-of {}
|
||||
transform-function-name {}
|
||||
transform-literals {}
|
||||
transform-object-super {}
|
||||
transform-parameters {}
|
||||
transform-shorthand-properties {}
|
||||
transform-spread {}
|
||||
transform-sticky-regex {}
|
||||
transform-template-literals {}
|
||||
transform-typeof-symbol {}
|
||||
transform-unicode-regex {}
|
||||
transform-new-target {}
|
||||
transform-regenerator {}
|
||||
transform-exponentiation-operator {}
|
||||
|
||||
@ -13,25 +13,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-arrow-functions { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-block-scoping { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-classes { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-computed-properties { "ie":"10", "safari":"7" }
|
||||
transform-es2015-destructuring { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-duplicate-keys { "ie":"10", "safari":"7" }
|
||||
transform-es2015-for-of { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-function-name { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-literals { "firefox":"49", "ie":"10", "safari":"7" }
|
||||
transform-es2015-object-super { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-parameters { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-shorthand-properties { "ie":"10", "safari":"7" }
|
||||
transform-es2015-spread { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-sticky-regex { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-es2015-template-literals { "ie":"10", "safari":"7" }
|
||||
transform-es2015-typeof-symbol { "ie":"10", "safari":"7" }
|
||||
transform-es2015-unicode-regex { "ie":"10", "ios":"9", "safari":"7" }
|
||||
check-constants { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-arrow-functions { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-block-scoping { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-classes { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-computed-properties { "ie":"10", "safari":"7" }
|
||||
transform-destructuring { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-duplicate-keys { "ie":"10", "safari":"7" }
|
||||
transform-for-of { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-function-name { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-literals { "firefox":"49", "ie":"10", "safari":"7" }
|
||||
transform-object-super { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-parameters { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-shorthand-properties { "ie":"10", "safari":"7" }
|
||||
transform-spread { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-sticky-regex { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-template-literals { "ie":"10", "safari":"7" }
|
||||
transform-typeof-symbol { "ie":"10", "safari":"7" }
|
||||
transform-unicode-regex { "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-new-target { "edge":"13", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-regenerator { "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
transform-exponentiation-operator { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
|
||||
|
||||
@ -10,24 +10,24 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-arrow-functions { "ie":"11" }
|
||||
transform-es2015-block-scoping { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-classes { "ie":"11" }
|
||||
transform-es2015-computed-properties { "ie":"11" }
|
||||
transform-es2015-destructuring { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-duplicate-keys { "ie":"11" }
|
||||
transform-es2015-for-of { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-function-name { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-literals { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-object-super { "ie":"11" }
|
||||
transform-es2015-parameters { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-shorthand-properties { "ie":"11" }
|
||||
transform-es2015-spread { "ie":"11" }
|
||||
transform-es2015-sticky-regex { "ie":"11" }
|
||||
transform-es2015-template-literals { "ie":"11" }
|
||||
transform-es2015-typeof-symbol { "ie":"11" }
|
||||
transform-es2015-unicode-regex { "ie":"11" }
|
||||
check-constants { "firefox":"50", "ie":"11" }
|
||||
transform-arrow-functions { "ie":"11" }
|
||||
transform-block-scoping { "firefox":"50", "ie":"11" }
|
||||
transform-classes { "ie":"11" }
|
||||
transform-computed-properties { "ie":"11" }
|
||||
transform-destructuring { "firefox":"50", "ie":"11" }
|
||||
transform-duplicate-keys { "ie":"11" }
|
||||
transform-for-of { "firefox":"50", "ie":"11" }
|
||||
transform-function-name { "firefox":"50", "ie":"11" }
|
||||
transform-literals { "firefox":"50", "ie":"11" }
|
||||
transform-object-super { "ie":"11" }
|
||||
transform-parameters { "firefox":"50", "ie":"11" }
|
||||
transform-shorthand-properties { "ie":"11" }
|
||||
transform-spread { "ie":"11" }
|
||||
transform-sticky-regex { "ie":"11" }
|
||||
transform-template-literals { "ie":"11" }
|
||||
transform-typeof-symbol { "ie":"11" }
|
||||
transform-unicode-regex { "ie":"11" }
|
||||
transform-new-target { "ie":"11" }
|
||||
transform-regenerator { "firefox":"50", "ie":"11" }
|
||||
transform-exponentiation-operator { "firefox":"50", "ie":"11" }
|
||||
|
||||
@ -10,24 +10,24 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-arrow-functions { "ie":"11" }
|
||||
transform-es2015-block-scoping { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-classes { "ie":"11" }
|
||||
transform-es2015-computed-properties { "ie":"11" }
|
||||
transform-es2015-destructuring { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-duplicate-keys { "ie":"11" }
|
||||
transform-es2015-for-of { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-function-name { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-literals { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-object-super { "ie":"11" }
|
||||
transform-es2015-parameters { "firefox":"50", "ie":"11" }
|
||||
transform-es2015-shorthand-properties { "ie":"11" }
|
||||
transform-es2015-spread { "ie":"11" }
|
||||
transform-es2015-sticky-regex { "ie":"11" }
|
||||
transform-es2015-template-literals { "ie":"11" }
|
||||
transform-es2015-typeof-symbol { "ie":"11" }
|
||||
transform-es2015-unicode-regex { "ie":"11" }
|
||||
check-constants { "firefox":"50", "ie":"11" }
|
||||
transform-arrow-functions { "ie":"11" }
|
||||
transform-block-scoping { "firefox":"50", "ie":"11" }
|
||||
transform-classes { "ie":"11" }
|
||||
transform-computed-properties { "ie":"11" }
|
||||
transform-destructuring { "firefox":"50", "ie":"11" }
|
||||
transform-duplicate-keys { "ie":"11" }
|
||||
transform-for-of { "firefox":"50", "ie":"11" }
|
||||
transform-function-name { "firefox":"50", "ie":"11" }
|
||||
transform-literals { "firefox":"50", "ie":"11" }
|
||||
transform-object-super { "ie":"11" }
|
||||
transform-parameters { "firefox":"50", "ie":"11" }
|
||||
transform-shorthand-properties { "ie":"11" }
|
||||
transform-spread { "ie":"11" }
|
||||
transform-sticky-regex { "ie":"11" }
|
||||
transform-template-literals { "ie":"11" }
|
||||
transform-typeof-symbol { "ie":"11" }
|
||||
transform-unicode-regex { "ie":"11" }
|
||||
transform-new-target { "ie":"11" }
|
||||
transform-regenerator { "firefox":"50", "ie":"11" }
|
||||
transform-exponentiation-operator { "firefox":"50", "ie":"11" }
|
||||
|
||||
@ -19,25 +19,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "electron":"0.36", "ie":"10" }
|
||||
transform-es2015-arrow-functions { "ie":"10" }
|
||||
transform-es2015-block-scoped-functions { "ie":"10" }
|
||||
transform-es2015-block-scoping { "electron":"0.36", "ie":"10" }
|
||||
transform-es2015-classes { "ie":"10" }
|
||||
transform-es2015-computed-properties { "ie":"10" }
|
||||
transform-es2015-destructuring { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-es2015-duplicate-keys { "ie":"10" }
|
||||
transform-es2015-for-of { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-es2015-function-name { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-es2015-literals { "ie":"10" }
|
||||
transform-es2015-object-super { "ie":"10" }
|
||||
transform-es2015-parameters { "electron":"0.36", "ie":"10" }
|
||||
transform-es2015-shorthand-properties { "ie":"10" }
|
||||
transform-es2015-spread { "ie":"10" }
|
||||
transform-es2015-sticky-regex { "electron":"0.36", "ie":"10" }
|
||||
transform-es2015-template-literals { "ie":"10" }
|
||||
transform-es2015-typeof-symbol { "ie":"10" }
|
||||
transform-es2015-unicode-regex { "electron":"0.36", "ie":"10" }
|
||||
check-constants { "electron":"0.36", "ie":"10" }
|
||||
transform-arrow-functions { "ie":"10" }
|
||||
transform-block-scoped-functions { "ie":"10" }
|
||||
transform-block-scoping { "electron":"0.36", "ie":"10" }
|
||||
transform-classes { "ie":"10" }
|
||||
transform-computed-properties { "ie":"10" }
|
||||
transform-destructuring { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-duplicate-keys { "ie":"10" }
|
||||
transform-for-of { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-function-name { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
transform-literals { "ie":"10" }
|
||||
transform-object-super { "ie":"10" }
|
||||
transform-parameters { "electron":"0.36", "ie":"10" }
|
||||
transform-shorthand-properties { "ie":"10" }
|
||||
transform-spread { "ie":"10" }
|
||||
transform-sticky-regex { "electron":"0.36", "ie":"10" }
|
||||
transform-template-literals { "ie":"10" }
|
||||
transform-typeof-symbol { "ie":"10" }
|
||||
transform-unicode-regex { "electron":"0.36", "ie":"10" }
|
||||
transform-new-target { "ie":"10" }
|
||||
transform-regenerator { "electron":"0.36", "ie":"10" }
|
||||
transform-exponentiation-operator { "electron":"0.36", "ie":"10", "node":"6.1" }
|
||||
|
||||
@ -10,25 +10,25 @@ Using targets:
|
||||
Using modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants { "ie":"10" }
|
||||
transform-es2015-arrow-functions { "ie":"10" }
|
||||
transform-es2015-block-scoped-functions { "ie":"10" }
|
||||
transform-es2015-block-scoping { "ie":"10" }
|
||||
transform-es2015-classes { "ie":"10" }
|
||||
transform-es2015-computed-properties { "ie":"10" }
|
||||
transform-es2015-destructuring { "ie":"10" }
|
||||
transform-es2015-duplicate-keys { "ie":"10" }
|
||||
transform-es2015-for-of { "ie":"10" }
|
||||
transform-es2015-function-name { "ie":"10" }
|
||||
transform-es2015-literals { "ie":"10" }
|
||||
transform-es2015-object-super { "ie":"10" }
|
||||
transform-es2015-parameters { "ie":"10" }
|
||||
transform-es2015-shorthand-properties { "ie":"10" }
|
||||
transform-es2015-spread { "ie":"10" }
|
||||
transform-es2015-sticky-regex { "ie":"10" }
|
||||
transform-es2015-template-literals { "ie":"10" }
|
||||
transform-es2015-typeof-symbol { "ie":"10" }
|
||||
transform-es2015-unicode-regex { "ie":"10" }
|
||||
check-constants { "ie":"10" }
|
||||
transform-arrow-functions { "ie":"10" }
|
||||
transform-block-scoped-functions { "ie":"10" }
|
||||
transform-block-scoping { "ie":"10" }
|
||||
transform-classes { "ie":"10" }
|
||||
transform-computed-properties { "ie":"10" }
|
||||
transform-destructuring { "ie":"10" }
|
||||
transform-duplicate-keys { "ie":"10" }
|
||||
transform-for-of { "ie":"10" }
|
||||
transform-function-name { "ie":"10" }
|
||||
transform-literals { "ie":"10" }
|
||||
transform-object-super { "ie":"10" }
|
||||
transform-parameters { "ie":"10" }
|
||||
transform-shorthand-properties { "ie":"10" }
|
||||
transform-spread { "ie":"10" }
|
||||
transform-sticky-regex { "ie":"10" }
|
||||
transform-template-literals { "ie":"10" }
|
||||
transform-typeof-symbol { "ie":"10" }
|
||||
transform-unicode-regex { "ie":"10" }
|
||||
transform-new-target { "ie":"10" }
|
||||
transform-regenerator { "ie":"10" }
|
||||
transform-exponentiation-operator { "ie":"10", "node":"6.10" }
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
"es7.string.pad-start"
|
||||
],
|
||||
"include": [
|
||||
"transform-es2015-arrow-functions",
|
||||
"transform-arrow-functions",
|
||||
"es6.map"
|
||||
]
|
||||
}]
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"presets": [
|
||||
["../../../../lib", {
|
||||
"targets": {},
|
||||
"include": ["transform-es2015-modules-commonjs"],
|
||||
"include": ["transform-modules-commonjs"],
|
||||
"modules": false
|
||||
}]
|
||||
]
|
||||
|
||||
@ -119,11 +119,11 @@ describe("babel-preset-env", () => {
|
||||
it("should return in transforms array", () => {
|
||||
assert.deepEqual(
|
||||
babelPresetEnv.transformIncludesAndExcludes([
|
||||
"transform-es2015-arrow-functions",
|
||||
"transform-arrow-functions",
|
||||
]),
|
||||
{
|
||||
all: ["transform-es2015-arrow-functions"],
|
||||
plugins: new Set(["transform-es2015-arrow-functions"]),
|
||||
all: ["transform-arrow-functions"],
|
||||
plugins: new Set(["transform-arrow-functions"]),
|
||||
builtIns: new Set(),
|
||||
},
|
||||
);
|
||||
|
||||
@ -15,22 +15,19 @@ describe("normalize-options", () => {
|
||||
describe("normalizeOptions", () => {
|
||||
it("should return normalized `include` and `exclude`", () => {
|
||||
const normalized = normalizeOptions.default({
|
||||
include: [
|
||||
"babel-plugin-transform-es2015-spread",
|
||||
"transform-es2015-classes",
|
||||
],
|
||||
include: ["babel-plugin-transform-spread", "transform-classes"],
|
||||
});
|
||||
assert.deepEqual(normalized.include, [
|
||||
"transform-es2015-spread",
|
||||
"transform-es2015-classes",
|
||||
"transform-spread",
|
||||
"transform-classes",
|
||||
]);
|
||||
});
|
||||
|
||||
it("should throw if duplicate names in `include` and `exclude`", () => {
|
||||
const normalizeWithSameIncludes = () => {
|
||||
normalizeOptions.default({
|
||||
include: ["babel-plugin-transform-es2015-spread"],
|
||||
exclude: ["transform-es2015-spread"],
|
||||
include: ["babel-plugin-transform-spread"],
|
||||
exclude: ["transform-spread"],
|
||||
});
|
||||
};
|
||||
assert.throws(normalizeWithSameIncludes, Error);
|
||||
@ -78,10 +75,10 @@ describe("normalize-options", () => {
|
||||
it("should drop `babel-plugin-` prefix if needed", function() {
|
||||
assert.deepEqual(
|
||||
normalizePluginNames([
|
||||
"babel-plugin-transform-es2015-object-super",
|
||||
"transform-es2015-parameters",
|
||||
"babel-plugin-transform-object-super",
|
||||
"transform-parameters",
|
||||
]),
|
||||
["transform-es2015-object-super", "transform-es2015-parameters"],
|
||||
["transform-object-super", "transform-parameters"],
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ Check out the [`babel-handbook`](https://github.com/thejameskyle/babel-handbook/
|
||||
|
||||
After Babel 6, the default transforms were removed; if you don't specify any plugins/presets, Babel will just return the original source code.
|
||||
|
||||
The transformer[s] used in Babel are the independent pieces of code that transform specific things. For example: the [`es2015-arrow-functions`](/packages/babel-plugin-transform-es2015-arrow-functions) transform specifically changes arrow functions into regular functions. A preset is simply an array of plugins that make it easier to run a whole a set of transforms without specifying each one manually.
|
||||
The transformer[s] used in Babel are the independent pieces of code that transform specific things. For example: the [`es2015-arrow-functions`](/packages/babel-plugin-transform-arrow-functions) transform specifically changes arrow functions into regular functions. A preset is simply an array of plugins that make it easier to run a whole a set of transforms without specifying each one manually.
|
||||
|
||||
| Package | Version | Dependencies | Description |
|
||||
|--------|-------|------------|---|
|
||||
|
||||
@ -24,7 +24,7 @@ const presetLocs = [
|
||||
|
||||
const pluginLocs = [
|
||||
path.join(__dirname, "/../../babel-plugin-transform-strict-mode"),
|
||||
path.join(__dirname, "/../../babel-plugin-transform-es2015-modules-commonjs"),
|
||||
path.join(__dirname, "/../../babel-plugin-transform-modules-commonjs"),
|
||||
].join(",");
|
||||
|
||||
const readDir = function(loc, filter) {
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-block-scoping"]
|
||||
"plugins": ["transform-block-scoping"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-classes", "external-helpers", "transform-es2015-block-scoping"]
|
||||
"plugins": ["transform-classes", "external-helpers", "transform-block-scoping"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["syntax-flow", "transform-flow-strip-types", "transform-es2015-parameters", "transform-es2015-block-scoping"]
|
||||
"plugins": ["syntax-flow", "transform-flow-strip-types", "transform-parameters", "transform-block-scoping"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-block-scoping", "transform-es2015-for-of"]
|
||||
"plugins": ["transform-block-scoping", "transform-for-of"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-parameters", "transform-es2015-arrow-functions", "transform-es2015-block-scoping"]
|
||||
"plugins": ["transform-parameters", "transform-arrow-functions", "transform-block-scoping"]
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"transform-es2015-arrow-functions",
|
||||
"transform-arrow-functions",
|
||||
"transform-async-to-generator",
|
||||
"external-helpers"
|
||||
]
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-destructuring", "transform-es2015-parameters", "transform-es2015-block-scoping", "transform-regenerator"]
|
||||
"plugins": ["transform-destructuring", "transform-parameters", "transform-block-scoping", "transform-regenerator"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-arrow-functions", "transform-es2015-function-name"]
|
||||
"plugins": ["transform-arrow-functions", "transform-function-name"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-es2015-classes", "transform-es2015-block-scoping"]
|
||||
"plugins": ["external-helpers", "transform-classes", "transform-block-scoping"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-arrow-functions"]
|
||||
"plugins": ["transform-arrow-functions"]
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-arrow-functions"],
|
||||
"plugins": ["transform-arrow-functions"],
|
||||
"sourceMap": "inline"
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ const presetLocs = [
|
||||
|
||||
const pluginLocs = [
|
||||
path.join(__dirname, "/../../babel-plugin-transform-strict-mode"),
|
||||
path.join(__dirname, "/../../babel-plugin-transform-es2015-modules-commonjs"),
|
||||
path.join(__dirname, "/../../babel-plugin-transform-modules-commonjs"),
|
||||
].join(",");
|
||||
|
||||
const readDir = function(loc, filter) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# @babel/plugin-check-es2015-constants
|
||||
# @babel/plugin-check-constants
|
||||
|
||||
> Validate ES2015 constants (prevents reassignment of const variables).
|
||||
|
||||
@ -24,7 +24,7 @@ repl: "a" is read-only
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-check-es2015-constants
|
||||
npm install --save-dev @babel/plugin-check-constants
|
||||
```
|
||||
|
||||
## Usage
|
||||
@ -35,24 +35,24 @@ npm install --save-dev @babel/plugin-check-es2015-constants
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@babel/check-es2015-constants"]
|
||||
"plugins": ["@babel/check-constants"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
babel --plugins @babel/check-es2015-constants script.js
|
||||
babel --plugins @babel/check-constants script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("@babel/core").transform("code", {
|
||||
plugins: ["@babel/check-es2015-constants"]
|
||||
plugins: ["@babel/check-constants"]
|
||||
});
|
||||
```
|
||||
|
||||
## Note
|
||||
|
||||
This check will only validate consts. If you need it to compile down to `var` then you must also install and enable [`transform-es2015-block-scoping`](http://babeljs.io/docs/plugins/transform-es2015-block-scoping/).
|
||||
This check will only validate consts. If you need it to compile down to `var` then you must also install and enable [`transform-block-scoping`](http://babeljs.io/docs/plugins/transform-block-scoping/).
|
||||
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@babel/plugin-check-es2015-constants",
|
||||
"name": "@babel/plugin-check-constants",
|
||||
"version": "7.0.0-beta.3",
|
||||
"description": "Compile ES2015 constants to ES5",
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-check-es2015-constants",
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-check-constants",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"keywords": [
|
||||
3
packages/babel-plugin-check-constants/test/fixtures/general/flow-declar/options.json
vendored
Normal file
3
packages/babel-plugin-check-constants/test/fixtures/general/flow-declar/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["check-constants", "transform-block-scoping", "transform-flow-strip-types"]
|
||||
}
|
||||
3
packages/babel-plugin-check-constants/test/fixtures/options.json
vendored
Normal file
3
packages/babel-plugin-check-constants/test/fixtures/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["check-constants", "transform-block-scoping", "transform-destructuring"]
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": ["check-es2015-constants", "transform-es2015-block-scoping", "transform-flow-strip-types"]
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": ["check-es2015-constants", "transform-es2015-block-scoping", "transform-es2015-destructuring"]
|
||||
}
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-es2015-arrow-functions", "syntax-class-properties"]
|
||||
"plugins": ["external-helpers", "transform-arrow-functions", "syntax-class-properties"]
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-es2015-arrow-functions", "syntax-class-properties"],
|
||||
"plugins": ["external-helpers", "transform-arrow-functions", "syntax-class-properties"],
|
||||
"throws": "Unable to transform arrow inside class property"
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "proposal-class-properties", "transform-es2015-classes", "transform-es2015-block-scoping", "syntax-class-properties"]
|
||||
"plugins": ["external-helpers", "proposal-class-properties", "transform-classes", "transform-block-scoping", "syntax-class-properties"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", ["proposal-class-properties", {"loose": true}], "transform-es2015-classes", "transform-es2015-block-scoping", "syntax-class-properties"]
|
||||
"plugins": ["external-helpers", ["proposal-class-properties", {"loose": true}], "transform-classes", "transform-block-scoping", "syntax-class-properties"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "proposal-class-properties", "transform-es2015-arrow-functions"]
|
||||
"plugins": ["external-helpers", "proposal-class-properties", "transform-arrow-functions"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", ["proposal-class-properties", {"loose": true}], "transform-es2015-classes", "transform-es2015-block-scoping", "syntax-class-properties"]
|
||||
"plugins": ["external-helpers", ["proposal-class-properties", {"loose": true}], "transform-classes", "transform-block-scoping", "syntax-class-properties"]
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user