remove es20xx prefixes from plugins and rename folders (#6575)

This commit is contained in:
Henry Zhu 2017-10-28 20:43:15 -04:00 committed by GitHub
parent 92a3caeb9c
commit 9ac326b075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1672 changed files with 1200 additions and 1203 deletions

View File

@ -115,7 +115,7 @@ $ TEST_ONLY=babel-cli make test
`TEST_ONLY` will also match substrings of the package name: `TEST_ONLY` will also match substrings of the package name:
```sh ```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 $ TEST_ONLY=es2015-class make test
``` ```

View File

@ -235,13 +235,13 @@ An array of plugins to always include.
Valid options include any: 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`. - [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. 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. > 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": { "targets": {
"browsers": ["last 2 versions", "safari >= 7"] "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"] "exclude": ["@babel/transform-regenerator", "es6.set"]
}] }]
] ]

View File

@ -1,101 +1,101 @@
const es2015 = { const es2015 = {
"check-es2015-constants": { "check-constants": {
features: [ features: [
"const", "const",
], ],
}, },
"transform-es2015-arrow-functions": { "transform-arrow-functions": {
features: [ features: [
"arrow functions", "arrow functions",
], ],
}, },
"transform-es2015-block-scoped-functions": { "transform-block-scoped-functions": {
features: [ features: [
"block-level function declaration" "block-level function declaration"
], ],
}, },
"transform-es2015-block-scoping": { "transform-block-scoping": {
features: [ features: [
"const", "const",
"let", "let",
], ],
}, },
"transform-es2015-classes": { "transform-classes": {
features: [ features: [
"class", "class",
"super", "super",
], ],
}, },
"transform-es2015-computed-properties": { "transform-computed-properties": {
features: [ features: [
"object literal extensions / computed properties", "object literal extensions / computed properties",
], ],
}, },
"transform-es2015-destructuring": { "transform-destructuring": {
features: [ features: [
"destructuring, assignment", "destructuring, assignment",
"destructuring, declarations", "destructuring, declarations",
"destructuring, parameters", "destructuring, parameters",
], ],
}, },
"transform-es2015-duplicate-keys": { "transform-duplicate-keys": {
features: [ features: [
"miscellaneous / duplicate property names in strict mode", "miscellaneous / duplicate property names in strict mode",
], ],
}, },
"transform-es2015-for-of": { "transform-for-of": {
features: [ features: [
"for..of loops", "for..of loops",
], ],
}, },
"transform-es2015-function-name": { "transform-function-name": {
features: [ features: [
"function \"name\" property", "function \"name\" property",
] ]
}, },
"transform-es2015-literals": { "transform-literals": {
features: [ features: [
"Unicode code point escapes", "Unicode code point escapes",
], ],
}, },
"transform-es2015-object-super": { "transform-object-super": {
features: [ features: [
"super", "super",
], ],
}, },
"transform-es2015-parameters": { "transform-parameters": {
features: [ features: [
"default function parameters", "default function parameters",
"rest parameters", "rest parameters",
], ],
}, },
"transform-es2015-shorthand-properties": { "transform-shorthand-properties": {
features: [ features: [
"object literal extensions / shorthand properties", "object literal extensions / shorthand properties",
], ],
}, },
"transform-es2015-spread": { "transform-spread": {
features: [ features: [
"spread (...) operator", "spread (...) operator",
], ],
}, },
"transform-es2015-sticky-regex": { "transform-sticky-regex": {
features: [ features: [
"RegExp \"y\" and \"u\" flags / \"y\" flag, lastIndex", "RegExp \"y\" and \"u\" flags / \"y\" flag, lastIndex",
"RegExp \"y\" and \"u\" flags / \"y\" flag", "RegExp \"y\" and \"u\" flags / \"y\" flag",
], ],
}, },
"transform-es2015-template-literals": { "transform-template-literals": {
features: [ features: [
"template literals", "template literals",
], ],
}, },
"transform-es2015-typeof-symbol": { "transform-typeof-symbol": {
features: [ features: [
"Symbol / typeof support" "Symbol / typeof support"
], ],
}, },
"transform-es2015-unicode-regex": { "transform-unicode-regex": {
features: [ features: [
"RegExp \"y\" and \"u\" flags / \"u\" flag, case folding", "RegExp \"y\" and \"u\" flags / \"u\" flag, case folding",
"RegExp \"y\" and \"u\" flags / \"u\" flag, Unicode code point escapes", "RegExp \"y\" and \"u\" flags / \"u\" flag, Unicode code point escapes",

View File

@ -1,5 +1,5 @@
{ {
"check-es2015-constants": { "check-constants": {
"chrome": "49", "chrome": "49",
"edge": "14", "edge": "14",
"firefox": "51", "firefox": "51",
@ -9,7 +9,7 @@
"opera": "36", "opera": "36",
"electron": "1" "electron": "1"
}, },
"transform-es2015-arrow-functions": { "transform-arrow-functions": {
"chrome": "47", "chrome": "47",
"edge": "13", "edge": "13",
"firefox": "45", "firefox": "45",
@ -19,7 +19,7 @@
"opera": "34", "opera": "34",
"electron": "0.36" "electron": "0.36"
}, },
"transform-es2015-block-scoped-functions": { "transform-block-scoped-functions": {
"chrome": "41", "chrome": "41",
"edge": "12", "edge": "12",
"firefox": "46", "firefox": "46",
@ -30,7 +30,7 @@
"opera": "28", "opera": "28",
"electron": "0.24" "electron": "0.24"
}, },
"transform-es2015-block-scoping": { "transform-block-scoping": {
"chrome": "49", "chrome": "49",
"edge": "14", "edge": "14",
"firefox": "51", "firefox": "51",
@ -40,7 +40,7 @@
"opera": "36", "opera": "36",
"electron": "1" "electron": "1"
}, },
"transform-es2015-classes": { "transform-classes": {
"chrome": "46", "chrome": "46",
"edge": "13", "edge": "13",
"firefox": "45", "firefox": "45",
@ -50,7 +50,7 @@
"opera": "33", "opera": "33",
"electron": "0.36" "electron": "0.36"
}, },
"transform-es2015-computed-properties": { "transform-computed-properties": {
"chrome": "44", "chrome": "44",
"edge": "12", "edge": "12",
"firefox": "34", "firefox": "34",
@ -60,7 +60,7 @@
"opera": "31", "opera": "31",
"electron": "0.31" "electron": "0.31"
}, },
"transform-es2015-destructuring": { "transform-destructuring": {
"chrome": "51", "chrome": "51",
"firefox": "53", "firefox": "53",
"safari": "10", "safari": "10",
@ -69,7 +69,7 @@
"opera": "38", "opera": "38",
"electron": "1.2" "electron": "1.2"
}, },
"transform-es2015-duplicate-keys": { "transform-duplicate-keys": {
"chrome": "42", "chrome": "42",
"edge": "12", "edge": "12",
"firefox": "34", "firefox": "34",
@ -79,7 +79,7 @@
"opera": "29", "opera": "29",
"electron": "0.27" "electron": "0.27"
}, },
"transform-es2015-for-of": { "transform-for-of": {
"chrome": "51", "chrome": "51",
"edge": "15", "edge": "15",
"firefox": "53", "firefox": "53",
@ -89,7 +89,7 @@
"opera": "38", "opera": "38",
"electron": "1.2" "electron": "1.2"
}, },
"transform-es2015-function-name": { "transform-function-name": {
"chrome": "51", "chrome": "51",
"firefox": "53", "firefox": "53",
"safari": "10", "safari": "10",
@ -98,7 +98,7 @@
"opera": "38", "opera": "38",
"electron": "1.2" "electron": "1.2"
}, },
"transform-es2015-literals": { "transform-literals": {
"chrome": "44", "chrome": "44",
"edge": "12", "edge": "12",
"firefox": "53", "firefox": "53",
@ -108,7 +108,7 @@
"opera": "31", "opera": "31",
"electron": "0.31" "electron": "0.31"
}, },
"transform-es2015-object-super": { "transform-object-super": {
"chrome": "46", "chrome": "46",
"edge": "13", "edge": "13",
"firefox": "45", "firefox": "45",
@ -118,7 +118,7 @@
"opera": "33", "opera": "33",
"electron": "0.36" "electron": "0.36"
}, },
"transform-es2015-parameters": { "transform-parameters": {
"chrome": "49", "chrome": "49",
"edge": "14", "edge": "14",
"firefox": "53", "firefox": "53",
@ -128,7 +128,7 @@
"opera": "36", "opera": "36",
"electron": "1" "electron": "1"
}, },
"transform-es2015-shorthand-properties": { "transform-shorthand-properties": {
"chrome": "43", "chrome": "43",
"edge": "12", "edge": "12",
"firefox": "33", "firefox": "33",
@ -138,7 +138,7 @@
"opera": "30", "opera": "30",
"electron": "0.29" "electron": "0.29"
}, },
"transform-es2015-spread": { "transform-spread": {
"chrome": "46", "chrome": "46",
"edge": "13", "edge": "13",
"firefox": "36", "firefox": "36",
@ -148,7 +148,7 @@
"opera": "33", "opera": "33",
"electron": "0.36" "electron": "0.36"
}, },
"transform-es2015-sticky-regex": { "transform-sticky-regex": {
"chrome": "49", "chrome": "49",
"edge": "13", "edge": "13",
"firefox": "3", "firefox": "3",
@ -158,7 +158,7 @@
"opera": "36", "opera": "36",
"electron": "1" "electron": "1"
}, },
"transform-es2015-template-literals": { "transform-template-literals": {
"chrome": "41", "chrome": "41",
"edge": "13", "edge": "13",
"firefox": "34", "firefox": "34",
@ -168,7 +168,7 @@
"opera": "28", "opera": "28",
"electron": "0.24" "electron": "0.24"
}, },
"transform-es2015-typeof-symbol": { "transform-typeof-symbol": {
"chrome": "38", "chrome": "38",
"edge": "12", "edge": "12",
"firefox": "36", "firefox": "36",
@ -178,7 +178,7 @@
"opera": "25", "opera": "25",
"electron": "0.2" "electron": "0.2"
}, },
"transform-es2015-unicode-regex": { "transform-unicode-regex": {
"chrome": "50", "chrome": "50",
"edge": "13", "edge": "13",
"firefox": "46", "firefox": "46",

View File

@ -11,34 +11,34 @@
"build-data": "node ./scripts/build-data.js" "build-data": "node ./scripts/build-data.js"
}, },
"dependencies": { "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-async-generators": "7.0.0-beta.3",
"@babel/plugin-syntax-object-rest-spread": "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-syntax-optional-catch-binding": "7.0.0-beta.3",
"@babel/plugin-proposal-async-generator-functions": "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-async-to-generator": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-arrow-functions": "7.0.0-beta.3", "@babel/plugin-transform-arrow-functions": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-block-scoped-functions": "7.0.0-beta.3", "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-block-scoping": "7.0.0-beta.3", "@babel/plugin-transform-block-scoping": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-classes": "7.0.0-beta.3", "@babel/plugin-transform-classes": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-computed-properties": "7.0.0-beta.3", "@babel/plugin-transform-computed-properties": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-destructuring": "7.0.0-beta.3", "@babel/plugin-transform-destructuring": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-duplicate-keys": "7.0.0-beta.3", "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-for-of": "7.0.0-beta.3", "@babel/plugin-transform-for-of": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-function-name": "7.0.0-beta.3", "@babel/plugin-transform-function-name": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-literals": "7.0.0-beta.3", "@babel/plugin-transform-literals": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-modules-amd": "7.0.0-beta.3", "@babel/plugin-transform-modules-amd": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-modules-commonjs": "7.0.0-beta.3", "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-modules-systemjs": "7.0.0-beta.3", "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-modules-umd": "7.0.0-beta.3", "@babel/plugin-transform-modules-umd": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-object-super": "7.0.0-beta.3", "@babel/plugin-transform-object-super": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-parameters": "7.0.0-beta.3", "@babel/plugin-transform-parameters": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-shorthand-properties": "7.0.0-beta.3", "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-spread": "7.0.0-beta.3", "@babel/plugin-transform-spread": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-sticky-regex": "7.0.0-beta.3", "@babel/plugin-transform-sticky-regex": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-template-literals": "7.0.0-beta.3", "@babel/plugin-transform-template-literals": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-typeof-symbol": "7.0.0-beta.3", "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.3",
"@babel/plugin-transform-es2015-unicode-regex": "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-exponentiation-operator": "7.0.0-beta.3",
"@babel/plugin-transform-new-target": "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", "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.3",

View File

@ -1,32 +1,32 @@
export default { 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-async-generators": require("@babel/plugin-syntax-async-generators"),
"syntax-object-rest-spread": require("@babel/plugin-syntax-object-rest-spread"), "syntax-object-rest-spread": require("@babel/plugin-syntax-object-rest-spread"),
"syntax-optional-catch-binding": require("@babel/plugin-syntax-optional-catch-binding"), "syntax-optional-catch-binding": require("@babel/plugin-syntax-optional-catch-binding"),
"transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"), "transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"),
"proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"), "proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"),
"transform-es2015-arrow-functions": require("@babel/plugin-transform-es2015-arrow-functions"), "transform-arrow-functions": require("@babel/plugin-transform-arrow-functions"),
"transform-es2015-block-scoped-functions": require("@babel/plugin-transform-es2015-block-scoped-functions"), "transform-block-scoped-functions": require("@babel/plugin-transform-block-scoped-functions"),
"transform-es2015-block-scoping": require("@babel/plugin-transform-es2015-block-scoping"), "transform-block-scoping": require("@babel/plugin-transform-block-scoping"),
"transform-es2015-classes": require("@babel/plugin-transform-es2015-classes"), "transform-classes": require("@babel/plugin-transform-classes"),
"transform-es2015-computed-properties": require("@babel/plugin-transform-es2015-computed-properties"), "transform-computed-properties": require("@babel/plugin-transform-computed-properties"),
"transform-es2015-destructuring": require("@babel/plugin-transform-es2015-destructuring"), "transform-destructuring": require("@babel/plugin-transform-destructuring"),
"transform-es2015-duplicate-keys": require("@babel/plugin-transform-es2015-duplicate-keys"), "transform-duplicate-keys": require("@babel/plugin-transform-duplicate-keys"),
"transform-es2015-for-of": require("@babel/plugin-transform-es2015-for-of"), "transform-for-of": require("@babel/plugin-transform-for-of"),
"transform-es2015-function-name": require("@babel/plugin-transform-es2015-function-name"), "transform-function-name": require("@babel/plugin-transform-function-name"),
"transform-es2015-literals": require("@babel/plugin-transform-es2015-literals"), "transform-literals": require("@babel/plugin-transform-literals"),
"transform-es2015-modules-amd": require("@babel/plugin-transform-es2015-modules-amd"), "transform-modules-amd": require("@babel/plugin-transform-modules-amd"),
"transform-es2015-modules-commonjs": require("@babel/plugin-transform-es2015-modules-commonjs"), "transform-modules-commonjs": require("@babel/plugin-transform-modules-commonjs"),
"transform-es2015-modules-systemjs": require("@babel/plugin-transform-es2015-modules-systemjs"), "transform-modules-systemjs": require("@babel/plugin-transform-modules-systemjs"),
"transform-es2015-modules-umd": require("@babel/plugin-transform-es2015-modules-umd"), "transform-modules-umd": require("@babel/plugin-transform-modules-umd"),
"transform-es2015-object-super": require("@babel/plugin-transform-es2015-object-super"), "transform-object-super": require("@babel/plugin-transform-object-super"),
"transform-es2015-parameters": require("@babel/plugin-transform-es2015-parameters"), "transform-parameters": require("@babel/plugin-transform-parameters"),
"transform-es2015-shorthand-properties": require("@babel/plugin-transform-es2015-shorthand-properties"), "transform-shorthand-properties": require("@babel/plugin-transform-shorthand-properties"),
"transform-es2015-spread": require("@babel/plugin-transform-es2015-spread"), "transform-spread": require("@babel/plugin-transform-spread"),
"transform-es2015-sticky-regex": require("@babel/plugin-transform-es2015-sticky-regex"), "transform-sticky-regex": require("@babel/plugin-transform-sticky-regex"),
"transform-es2015-template-literals": require("@babel/plugin-transform-es2015-template-literals"), "transform-template-literals": require("@babel/plugin-transform-template-literals"),
"transform-es2015-typeof-symbol": require("@babel/plugin-transform-es2015-typeof-symbol"), "transform-typeof-symbol": require("@babel/plugin-transform-typeof-symbol"),
"transform-es2015-unicode-regex": require("@babel/plugin-transform-es2015-unicode-regex"), "transform-unicode-regex": require("@babel/plugin-transform-unicode-regex"),
"transform-exponentiation-operator": require("@babel/plugin-transform-exponentiation-operator"), "transform-exponentiation-operator": require("@babel/plugin-transform-exponentiation-operator"),
"transform-new-target": require("@babel/plugin-transform-new-target"), "transform-new-target": require("@babel/plugin-transform-new-target"),
"proposal-object-rest-spread": require("@babel/plugin-proposal-object-rest-spread"), "proposal-object-rest-spread": require("@babel/plugin-proposal-object-rest-spread"),

View File

@ -211,7 +211,7 @@ export default function buildPreset(
const pluginUseBuiltIns = useBuiltIns !== false; const pluginUseBuiltIns = useBuiltIns !== false;
// NOTE: not giving spec here yet to avoid compatibility issues when // 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]) { if (modules !== false && moduleTransformations[modules]) {
plugins.push([getPlugin(moduleTransformations[modules]), { loose }]); plugins.push([getPlugin(moduleTransformations[modules]), { loose }]);
} }

View File

@ -1,6 +1,6 @@
export default { export default {
amd: "transform-es2015-modules-amd", amd: "transform-modules-amd",
commonjs: "transform-es2015-modules-commonjs", commonjs: "transform-modules-commonjs",
systemjs: "transform-es2015-modules-systemjs", systemjs: "transform-modules-systemjs",
umd: "transform-es2015-modules-umd", umd: "transform-modules-umd",
}; };

View File

@ -8,25 +8,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "android":"4" } check-constants { "android":"4" }
transform-es2015-arrow-functions { "android":"4" } transform-arrow-functions { "android":"4" }
transform-es2015-block-scoped-functions { "android":"4" } transform-block-scoped-functions { "android":"4" }
transform-es2015-block-scoping { "android":"4" } transform-block-scoping { "android":"4" }
transform-es2015-classes { "android":"4" } transform-classes { "android":"4" }
transform-es2015-computed-properties { "android":"4" } transform-computed-properties { "android":"4" }
transform-es2015-destructuring { "android":"4" } transform-destructuring { "android":"4" }
transform-es2015-duplicate-keys { "android":"4" } transform-duplicate-keys { "android":"4" }
transform-es2015-for-of { "android":"4" } transform-for-of { "android":"4" }
transform-es2015-function-name { "android":"4" } transform-function-name { "android":"4" }
transform-es2015-literals { "android":"4" } transform-literals { "android":"4" }
transform-es2015-object-super { "android":"4" } transform-object-super { "android":"4" }
transform-es2015-parameters { "android":"4" } transform-parameters { "android":"4" }
transform-es2015-shorthand-properties { "android":"4" } transform-shorthand-properties { "android":"4" }
transform-es2015-spread { "android":"4" } transform-spread { "android":"4" }
transform-es2015-sticky-regex { "android":"4" } transform-sticky-regex { "android":"4" }
transform-es2015-template-literals { "android":"4" } transform-template-literals { "android":"4" }
transform-es2015-typeof-symbol { "android":"4" } transform-typeof-symbol { "android":"4" }
transform-es2015-unicode-regex { "android":"4" } transform-unicode-regex { "android":"4" }
transform-new-target { "android":"4" } transform-new-target { "android":"4" }
transform-regenerator { "android":"4" } transform-regenerator { "android":"4" }
transform-exponentiation-operator { "android":"4" } transform-exponentiation-operator { "android":"4" }

View File

@ -8,9 +8,9 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
transform-es2015-destructuring { "node":"6" } transform-destructuring { "node":"6" }
transform-es2015-for-of { "node":"6" } transform-for-of { "node":"6" }
transform-es2015-function-name { "node":"6" } transform-function-name { "node":"6" }
transform-exponentiation-operator { "node":"6" } transform-exponentiation-operator { "node":"6" }
transform-async-to-generator { "node":"6" } transform-async-to-generator { "node":"6" }

View File

@ -11,25 +11,25 @@ Using targets:
Using modules transform: false Using modules transform: false
Using plugins: Using plugins:
check-es2015-constants {} check-constants {}
transform-es2015-arrow-functions {} transform-arrow-functions {}
transform-es2015-block-scoped-functions {} transform-block-scoped-functions {}
transform-es2015-block-scoping {} transform-block-scoping {}
transform-es2015-classes {} transform-classes {}
transform-es2015-computed-properties {} transform-computed-properties {}
transform-es2015-destructuring {} transform-destructuring {}
transform-es2015-duplicate-keys {} transform-duplicate-keys {}
transform-es2015-for-of {} transform-for-of {}
transform-es2015-function-name {} transform-function-name {}
transform-es2015-literals {} transform-literals {}
transform-es2015-object-super {} transform-object-super {}
transform-es2015-parameters {} transform-parameters {}
transform-es2015-shorthand-properties {} transform-shorthand-properties {}
transform-es2015-spread {} transform-spread {}
transform-es2015-sticky-regex {} transform-sticky-regex {}
transform-es2015-template-literals {} transform-template-literals {}
transform-es2015-typeof-symbol {} transform-typeof-symbol {}
transform-es2015-unicode-regex {} transform-unicode-regex {}
transform-new-target {} transform-new-target {}
transform-regenerator {} transform-regenerator {}
transform-exponentiation-operator {} transform-exponentiation-operator {}

View File

@ -10,25 +10,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "ie":"10" } check-constants { "ie":"10" }
transform-es2015-arrow-functions { "ie":"10" } transform-arrow-functions { "ie":"10" }
transform-es2015-block-scoped-functions { "ie":"10" } transform-block-scoped-functions { "ie":"10" }
transform-es2015-block-scoping { "ie":"10" } transform-block-scoping { "ie":"10" }
transform-es2015-classes { "ie":"10" } transform-classes { "ie":"10" }
transform-es2015-computed-properties { "ie":"10" } transform-computed-properties { "ie":"10" }
transform-es2015-destructuring { "ie":"10", "node":"6" } transform-destructuring { "ie":"10", "node":"6" }
transform-es2015-duplicate-keys { "ie":"10" } transform-duplicate-keys { "ie":"10" }
transform-es2015-for-of { "ie":"10", "node":"6" } transform-for-of { "ie":"10", "node":"6" }
transform-es2015-function-name { "ie":"10", "node":"6" } transform-function-name { "ie":"10", "node":"6" }
transform-es2015-literals { "ie":"10" } transform-literals { "ie":"10" }
transform-es2015-object-super { "ie":"10" } transform-object-super { "ie":"10" }
transform-es2015-parameters { "ie":"10" } transform-parameters { "ie":"10" }
transform-es2015-shorthand-properties { "ie":"10" } transform-shorthand-properties { "ie":"10" }
transform-es2015-spread { "ie":"10" } transform-spread { "ie":"10" }
transform-es2015-sticky-regex { "ie":"10" } transform-sticky-regex { "ie":"10" }
transform-es2015-template-literals { "ie":"10" } transform-template-literals { "ie":"10" }
transform-es2015-typeof-symbol { "ie":"10" } transform-typeof-symbol { "ie":"10" }
transform-es2015-unicode-regex { "ie":"10" } transform-unicode-regex { "ie":"10" }
transform-new-target { "ie":"10" } transform-new-target { "ie":"10" }
transform-regenerator { "ie":"10" } transform-regenerator { "ie":"10" }
transform-exponentiation-operator { "ie":"10", "node":"6" } transform-exponentiation-operator { "ie":"10", "node":"6" }

View File

@ -15,14 +15,14 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "electron":"0.36" } check-constants { "electron":"0.36" }
transform-es2015-block-scoping { "electron":"0.36" } transform-block-scoping { "electron":"0.36" }
transform-es2015-destructuring { "electron":"0.36" } transform-destructuring { "electron":"0.36" }
transform-es2015-for-of { "electron":"0.36" } transform-for-of { "electron":"0.36" }
transform-es2015-function-name { "electron":"0.36" } transform-function-name { "electron":"0.36" }
transform-es2015-parameters { "electron":"0.36" } transform-parameters { "electron":"0.36" }
transform-es2015-sticky-regex { "electron":"0.36" } transform-sticky-regex { "electron":"0.36" }
transform-es2015-unicode-regex { "electron":"0.36" } transform-unicode-regex { "electron":"0.36" }
transform-regenerator { "electron":"0.36" } transform-regenerator { "electron":"0.36" }
transform-exponentiation-operator { "electron":"0.36" } transform-exponentiation-operator { "electron":"0.36" }
transform-async-to-generator { "electron":"0.36" } transform-async-to-generator { "electron":"0.36" }

View File

@ -8,25 +8,25 @@ Using targets:
Using modules transform: false Using modules transform: false
Using plugins: Using plugins:
check-es2015-constants {} check-constants {}
transform-es2015-arrow-functions {} transform-arrow-functions {}
transform-es2015-block-scoped-functions {} transform-block-scoped-functions {}
transform-es2015-block-scoping {} transform-block-scoping {}
transform-es2015-classes {} transform-classes {}
transform-es2015-computed-properties {} transform-computed-properties {}
transform-es2015-destructuring {} transform-destructuring {}
transform-es2015-duplicate-keys {} transform-duplicate-keys {}
transform-es2015-for-of {} transform-for-of {}
transform-es2015-function-name {} transform-function-name {}
transform-es2015-literals {} transform-literals {}
transform-es2015-object-super {} transform-object-super {}
transform-es2015-parameters {} transform-parameters {}
transform-es2015-shorthand-properties {} transform-shorthand-properties {}
transform-es2015-spread {} transform-spread {}
transform-es2015-sticky-regex {} transform-sticky-regex {}
transform-es2015-template-literals {} transform-template-literals {}
transform-es2015-typeof-symbol {} transform-typeof-symbol {}
transform-es2015-unicode-regex {} transform-unicode-regex {}
transform-new-target {} transform-new-target {}
transform-regenerator {} transform-regenerator {}
transform-exponentiation-operator {} transform-exponentiation-operator {}

View File

@ -5,7 +5,7 @@
"exclude": [ "exclude": [
"transform-async-to-generator", "transform-async-to-generator",
"transform-regenerator", "transform-regenerator",
"transform-es2015-parameters" "transform-parameters"
], ],
"targets": { "targets": {
"firefox": 52, "firefox": 52,

View File

@ -16,10 +16,10 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
transform-es2015-destructuring { "firefox":"52" } transform-destructuring { "firefox":"52" }
transform-es2015-for-of { "firefox":"52" } transform-for-of { "firefox":"52" }
transform-es2015-function-name { "firefox":"52" } transform-function-name { "firefox":"52" }
transform-es2015-literals { "firefox":"52" } transform-literals { "firefox":"52" }
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set.
src/in.js -> lib/in.js src/in.js -> lib/in.js

View File

@ -6,25 +6,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants {} check-constants {}
transform-es2015-arrow-functions {} transform-arrow-functions {}
transform-es2015-block-scoped-functions {} transform-block-scoped-functions {}
transform-es2015-block-scoping {} transform-block-scoping {}
transform-es2015-classes {} transform-classes {}
transform-es2015-computed-properties {} transform-computed-properties {}
transform-es2015-destructuring {} transform-destructuring {}
transform-es2015-duplicate-keys {} transform-duplicate-keys {}
transform-es2015-for-of {} transform-for-of {}
transform-es2015-function-name {} transform-function-name {}
transform-es2015-literals {} transform-literals {}
transform-es2015-object-super {} transform-object-super {}
transform-es2015-parameters {} transform-parameters {}
transform-es2015-shorthand-properties {} transform-shorthand-properties {}
transform-es2015-spread {} transform-spread {}
transform-es2015-sticky-regex {} transform-sticky-regex {}
transform-es2015-template-literals {} transform-template-literals {}
transform-es2015-typeof-symbol {} transform-typeof-symbol {}
transform-es2015-unicode-regex {} transform-unicode-regex {}
transform-new-target {} transform-new-target {}
transform-regenerator {} transform-regenerator {}
transform-exponentiation-operator {} transform-exponentiation-operator {}

View File

@ -13,25 +13,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } check-constants { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-arrow-functions { "ie":"10", "ios":"9", "safari":"7" } transform-arrow-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" } transform-block-scoped-functions { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-block-scoping { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-block-scoping { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-classes { "ie":"10", "ios":"9", "safari":"7" } transform-classes { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-computed-properties { "ie":"10", "safari":"7" } transform-computed-properties { "ie":"10", "safari":"7" }
transform-es2015-destructuring { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-destructuring { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-duplicate-keys { "ie":"10", "safari":"7" } transform-duplicate-keys { "ie":"10", "safari":"7" }
transform-es2015-for-of { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-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-function-name { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-literals { "firefox":"49", "ie":"10", "safari":"7" } transform-literals { "firefox":"49", "ie":"10", "safari":"7" }
transform-es2015-object-super { "ie":"10", "ios":"9", "safari":"7" } transform-object-super { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-parameters { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-parameters { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-shorthand-properties { "ie":"10", "safari":"7" } transform-shorthand-properties { "ie":"10", "safari":"7" }
transform-es2015-spread { "ie":"10", "ios":"9", "safari":"7" } transform-spread { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-sticky-regex { "ie":"10", "ios":"9", "safari":"7" } transform-sticky-regex { "ie":"10", "ios":"9", "safari":"7" }
transform-es2015-template-literals { "ie":"10", "safari":"7" } transform-template-literals { "ie":"10", "safari":"7" }
transform-es2015-typeof-symbol { "ie":"10", "safari":"7" } transform-typeof-symbol { "ie":"10", "safari":"7" }
transform-es2015-unicode-regex { "ie":"10", "ios":"9", "safari":"7" } transform-unicode-regex { "ie":"10", "ios":"9", "safari":"7" }
transform-new-target { "edge":"13", "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-regenerator { "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }
transform-exponentiation-operator { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-exponentiation-operator { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" }

View File

@ -10,24 +10,24 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "firefox":"50", "ie":"11" } check-constants { "firefox":"50", "ie":"11" }
transform-es2015-arrow-functions { "ie":"11" } transform-arrow-functions { "ie":"11" }
transform-es2015-block-scoping { "firefox":"50", "ie":"11" } transform-block-scoping { "firefox":"50", "ie":"11" }
transform-es2015-classes { "ie":"11" } transform-classes { "ie":"11" }
transform-es2015-computed-properties { "ie":"11" } transform-computed-properties { "ie":"11" }
transform-es2015-destructuring { "firefox":"50", "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" }
transform-es2015-duplicate-keys { "ie":"11" } transform-duplicate-keys { "ie":"11" }
transform-es2015-for-of { "firefox":"50", "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" }
transform-es2015-function-name { "firefox":"50", "ie":"11" } transform-function-name { "firefox":"50", "ie":"11" }
transform-es2015-literals { "firefox":"50", "ie":"11" } transform-literals { "firefox":"50", "ie":"11" }
transform-es2015-object-super { "ie":"11" } transform-object-super { "ie":"11" }
transform-es2015-parameters { "firefox":"50", "ie":"11" } transform-parameters { "firefox":"50", "ie":"11" }
transform-es2015-shorthand-properties { "ie":"11" } transform-shorthand-properties { "ie":"11" }
transform-es2015-spread { "ie":"11" } transform-spread { "ie":"11" }
transform-es2015-sticky-regex { "ie":"11" } transform-sticky-regex { "ie":"11" }
transform-es2015-template-literals { "ie":"11" } transform-template-literals { "ie":"11" }
transform-es2015-typeof-symbol { "ie":"11" } transform-typeof-symbol { "ie":"11" }
transform-es2015-unicode-regex { "ie":"11" } transform-unicode-regex { "ie":"11" }
transform-new-target { "ie":"11" } transform-new-target { "ie":"11" }
transform-regenerator { "firefox":"50", "ie":"11" } transform-regenerator { "firefox":"50", "ie":"11" }
transform-exponentiation-operator { "firefox":"50", "ie":"11" } transform-exponentiation-operator { "firefox":"50", "ie":"11" }

View File

@ -10,24 +10,24 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "firefox":"50", "ie":"11" } check-constants { "firefox":"50", "ie":"11" }
transform-es2015-arrow-functions { "ie":"11" } transform-arrow-functions { "ie":"11" }
transform-es2015-block-scoping { "firefox":"50", "ie":"11" } transform-block-scoping { "firefox":"50", "ie":"11" }
transform-es2015-classes { "ie":"11" } transform-classes { "ie":"11" }
transform-es2015-computed-properties { "ie":"11" } transform-computed-properties { "ie":"11" }
transform-es2015-destructuring { "firefox":"50", "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" }
transform-es2015-duplicate-keys { "ie":"11" } transform-duplicate-keys { "ie":"11" }
transform-es2015-for-of { "firefox":"50", "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" }
transform-es2015-function-name { "firefox":"50", "ie":"11" } transform-function-name { "firefox":"50", "ie":"11" }
transform-es2015-literals { "firefox":"50", "ie":"11" } transform-literals { "firefox":"50", "ie":"11" }
transform-es2015-object-super { "ie":"11" } transform-object-super { "ie":"11" }
transform-es2015-parameters { "firefox":"50", "ie":"11" } transform-parameters { "firefox":"50", "ie":"11" }
transform-es2015-shorthand-properties { "ie":"11" } transform-shorthand-properties { "ie":"11" }
transform-es2015-spread { "ie":"11" } transform-spread { "ie":"11" }
transform-es2015-sticky-regex { "ie":"11" } transform-sticky-regex { "ie":"11" }
transform-es2015-template-literals { "ie":"11" } transform-template-literals { "ie":"11" }
transform-es2015-typeof-symbol { "ie":"11" } transform-typeof-symbol { "ie":"11" }
transform-es2015-unicode-regex { "ie":"11" } transform-unicode-regex { "ie":"11" }
transform-new-target { "ie":"11" } transform-new-target { "ie":"11" }
transform-regenerator { "firefox":"50", "ie":"11" } transform-regenerator { "firefox":"50", "ie":"11" }
transform-exponentiation-operator { "firefox":"50", "ie":"11" } transform-exponentiation-operator { "firefox":"50", "ie":"11" }

View File

@ -19,25 +19,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "electron":"0.36", "ie":"10" } check-constants { "electron":"0.36", "ie":"10" }
transform-es2015-arrow-functions { "ie":"10" } transform-arrow-functions { "ie":"10" }
transform-es2015-block-scoped-functions { "ie":"10" } transform-block-scoped-functions { "ie":"10" }
transform-es2015-block-scoping { "electron":"0.36", "ie":"10" } transform-block-scoping { "electron":"0.36", "ie":"10" }
transform-es2015-classes { "ie":"10" } transform-classes { "ie":"10" }
transform-es2015-computed-properties { "ie":"10" } transform-computed-properties { "ie":"10" }
transform-es2015-destructuring { "electron":"0.36", "ie":"10", "node":"6.1" } transform-destructuring { "electron":"0.36", "ie":"10", "node":"6.1" }
transform-es2015-duplicate-keys { "ie":"10" } transform-duplicate-keys { "ie":"10" }
transform-es2015-for-of { "electron":"0.36", "ie":"10", "node":"6.1" } transform-for-of { "electron":"0.36", "ie":"10", "node":"6.1" }
transform-es2015-function-name { "electron":"0.36", "ie":"10", "node":"6.1" } transform-function-name { "electron":"0.36", "ie":"10", "node":"6.1" }
transform-es2015-literals { "ie":"10" } transform-literals { "ie":"10" }
transform-es2015-object-super { "ie":"10" } transform-object-super { "ie":"10" }
transform-es2015-parameters { "electron":"0.36", "ie":"10" } transform-parameters { "electron":"0.36", "ie":"10" }
transform-es2015-shorthand-properties { "ie":"10" } transform-shorthand-properties { "ie":"10" }
transform-es2015-spread { "ie":"10" } transform-spread { "ie":"10" }
transform-es2015-sticky-regex { "electron":"0.36", "ie":"10" } transform-sticky-regex { "electron":"0.36", "ie":"10" }
transform-es2015-template-literals { "ie":"10" } transform-template-literals { "ie":"10" }
transform-es2015-typeof-symbol { "ie":"10" } transform-typeof-symbol { "ie":"10" }
transform-es2015-unicode-regex { "electron":"0.36", "ie":"10" } transform-unicode-regex { "electron":"0.36", "ie":"10" }
transform-new-target { "ie":"10" } transform-new-target { "ie":"10" }
transform-regenerator { "electron":"0.36", "ie":"10" } transform-regenerator { "electron":"0.36", "ie":"10" }
transform-exponentiation-operator { "electron":"0.36", "ie":"10", "node":"6.1" } transform-exponentiation-operator { "electron":"0.36", "ie":"10", "node":"6.1" }

View File

@ -10,25 +10,25 @@ Using targets:
Using modules transform: commonjs Using modules transform: commonjs
Using plugins: Using plugins:
check-es2015-constants { "ie":"10" } check-constants { "ie":"10" }
transform-es2015-arrow-functions { "ie":"10" } transform-arrow-functions { "ie":"10" }
transform-es2015-block-scoped-functions { "ie":"10" } transform-block-scoped-functions { "ie":"10" }
transform-es2015-block-scoping { "ie":"10" } transform-block-scoping { "ie":"10" }
transform-es2015-classes { "ie":"10" } transform-classes { "ie":"10" }
transform-es2015-computed-properties { "ie":"10" } transform-computed-properties { "ie":"10" }
transform-es2015-destructuring { "ie":"10" } transform-destructuring { "ie":"10" }
transform-es2015-duplicate-keys { "ie":"10" } transform-duplicate-keys { "ie":"10" }
transform-es2015-for-of { "ie":"10" } transform-for-of { "ie":"10" }
transform-es2015-function-name { "ie":"10" } transform-function-name { "ie":"10" }
transform-es2015-literals { "ie":"10" } transform-literals { "ie":"10" }
transform-es2015-object-super { "ie":"10" } transform-object-super { "ie":"10" }
transform-es2015-parameters { "ie":"10" } transform-parameters { "ie":"10" }
transform-es2015-shorthand-properties { "ie":"10" } transform-shorthand-properties { "ie":"10" }
transform-es2015-spread { "ie":"10" } transform-spread { "ie":"10" }
transform-es2015-sticky-regex { "ie":"10" } transform-sticky-regex { "ie":"10" }
transform-es2015-template-literals { "ie":"10" } transform-template-literals { "ie":"10" }
transform-es2015-typeof-symbol { "ie":"10" } transform-typeof-symbol { "ie":"10" }
transform-es2015-unicode-regex { "ie":"10" } transform-unicode-regex { "ie":"10" }
transform-new-target { "ie":"10" } transform-new-target { "ie":"10" }
transform-regenerator { "ie":"10" } transform-regenerator { "ie":"10" }
transform-exponentiation-operator { "ie":"10", "node":"6.10" } transform-exponentiation-operator { "ie":"10", "node":"6.10" }

View File

@ -12,7 +12,7 @@
"es7.string.pad-start" "es7.string.pad-start"
], ],
"include": [ "include": [
"transform-es2015-arrow-functions", "transform-arrow-functions",
"es6.map" "es6.map"
] ]
}] }]

View File

@ -2,7 +2,7 @@
"presets": [ "presets": [
["../../../../lib", { ["../../../../lib", {
"targets": {}, "targets": {},
"include": ["transform-es2015-modules-commonjs"], "include": ["transform-modules-commonjs"],
"modules": false "modules": false
}] }]
] ]

View File

@ -119,11 +119,11 @@ describe("babel-preset-env", () => {
it("should return in transforms array", () => { it("should return in transforms array", () => {
assert.deepEqual( assert.deepEqual(
babelPresetEnv.transformIncludesAndExcludes([ babelPresetEnv.transformIncludesAndExcludes([
"transform-es2015-arrow-functions", "transform-arrow-functions",
]), ]),
{ {
all: ["transform-es2015-arrow-functions"], all: ["transform-arrow-functions"],
plugins: new Set(["transform-es2015-arrow-functions"]), plugins: new Set(["transform-arrow-functions"]),
builtIns: new Set(), builtIns: new Set(),
}, },
); );

View File

@ -15,22 +15,19 @@ describe("normalize-options", () => {
describe("normalizeOptions", () => { describe("normalizeOptions", () => {
it("should return normalized `include` and `exclude`", () => { it("should return normalized `include` and `exclude`", () => {
const normalized = normalizeOptions.default({ const normalized = normalizeOptions.default({
include: [ include: ["babel-plugin-transform-spread", "transform-classes"],
"babel-plugin-transform-es2015-spread",
"transform-es2015-classes",
],
}); });
assert.deepEqual(normalized.include, [ assert.deepEqual(normalized.include, [
"transform-es2015-spread", "transform-spread",
"transform-es2015-classes", "transform-classes",
]); ]);
}); });
it("should throw if duplicate names in `include` and `exclude`", () => { it("should throw if duplicate names in `include` and `exclude`", () => {
const normalizeWithSameIncludes = () => { const normalizeWithSameIncludes = () => {
normalizeOptions.default({ normalizeOptions.default({
include: ["babel-plugin-transform-es2015-spread"], include: ["babel-plugin-transform-spread"],
exclude: ["transform-es2015-spread"], exclude: ["transform-spread"],
}); });
}; };
assert.throws(normalizeWithSameIncludes, Error); assert.throws(normalizeWithSameIncludes, Error);
@ -78,10 +75,10 @@ describe("normalize-options", () => {
it("should drop `babel-plugin-` prefix if needed", function() { it("should drop `babel-plugin-` prefix if needed", function() {
assert.deepEqual( assert.deepEqual(
normalizePluginNames([ normalizePluginNames([
"babel-plugin-transform-es2015-object-super", "babel-plugin-transform-object-super",
"transform-es2015-parameters", "transform-parameters",
]), ]),
["transform-es2015-object-super", "transform-es2015-parameters"], ["transform-object-super", "transform-parameters"],
); );
}); });

View File

@ -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. 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 | | Package | Version | Dependencies | Description |
|--------|-------|------------|---| |--------|-------|------------|---|

View File

@ -24,7 +24,7 @@ const presetLocs = [
const pluginLocs = [ const pluginLocs = [
path.join(__dirname, "/../../babel-plugin-transform-strict-mode"), 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(","); ].join(",");
const readDir = function(loc, filter) { const readDir = function(loc, filter) {

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["transform-es2015-block-scoping"] "plugins": ["transform-block-scoping"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["transform-es2015-classes", "external-helpers", "transform-es2015-block-scoping"] "plugins": ["transform-classes", "external-helpers", "transform-block-scoping"]
} }

View File

@ -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"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["transform-es2015-block-scoping", "transform-es2015-for-of"] "plugins": ["transform-block-scoping", "transform-for-of"]
} }

View File

@ -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"]
} }

View File

@ -1,6 +1,6 @@
{ {
"plugins": [ "plugins": [
"transform-es2015-arrow-functions", "transform-arrow-functions",
"transform-async-to-generator", "transform-async-to-generator",
"external-helpers" "external-helpers"
] ]

View File

@ -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"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["transform-es2015-arrow-functions", "transform-es2015-function-name"] "plugins": ["transform-arrow-functions", "transform-function-name"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["external-helpers", "transform-es2015-classes", "transform-es2015-block-scoping"] "plugins": ["external-helpers", "transform-classes", "transform-block-scoping"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["transform-es2015-arrow-functions"] "plugins": ["transform-arrow-functions"]
} }

View File

@ -1,4 +1,4 @@
{ {
"plugins": ["transform-es2015-arrow-functions"], "plugins": ["transform-arrow-functions"],
"sourceMap": "inline" "sourceMap": "inline"
} }

View File

@ -24,7 +24,7 @@ const presetLocs = [
const pluginLocs = [ const pluginLocs = [
path.join(__dirname, "/../../babel-plugin-transform-strict-mode"), 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(","); ].join(",");
const readDir = function(loc, filter) { const readDir = function(loc, filter) {

View File

@ -1,4 +1,4 @@
# @babel/plugin-check-es2015-constants # @babel/plugin-check-constants
> Validate ES2015 constants (prevents reassignment of const variables). > Validate ES2015 constants (prevents reassignment of const variables).
@ -24,7 +24,7 @@ repl: "a" is read-only
## Installation ## Installation
```sh ```sh
npm install --save-dev @babel/plugin-check-es2015-constants npm install --save-dev @babel/plugin-check-constants
``` ```
## Usage ## Usage
@ -35,24 +35,24 @@ npm install --save-dev @babel/plugin-check-es2015-constants
```json ```json
{ {
"plugins": ["@babel/check-es2015-constants"] "plugins": ["@babel/check-constants"]
} }
``` ```
### Via CLI ### Via CLI
```sh ```sh
babel --plugins @babel/check-es2015-constants script.js babel --plugins @babel/check-constants script.js
``` ```
### Via Node API ### Via Node API
```javascript ```javascript
require("@babel/core").transform("code", { require("@babel/core").transform("code", {
plugins: ["@babel/check-es2015-constants"] plugins: ["@babel/check-constants"]
}); });
``` ```
## Note ## 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/).

View File

@ -1,8 +1,8 @@
{ {
"name": "@babel/plugin-check-es2015-constants", "name": "@babel/plugin-check-constants",
"version": "7.0.0-beta.3", "version": "7.0.0-beta.3",
"description": "Compile ES2015 constants to ES5", "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", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"keywords": [ "keywords": [

View File

@ -0,0 +1,3 @@
{
"plugins": ["check-constants", "transform-block-scoping", "transform-flow-strip-types"]
}

View File

@ -0,0 +1,3 @@
{
"plugins": ["check-constants", "transform-block-scoping", "transform-destructuring"]
}

View File

@ -1,3 +0,0 @@
{
"plugins": ["check-es2015-constants", "transform-es2015-block-scoping", "transform-flow-strip-types"]
}

View File

@ -1,3 +0,0 @@
{
"plugins": ["check-es2015-constants", "transform-es2015-block-scoping", "transform-es2015-destructuring"]
}

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["external-helpers", "transform-es2015-arrow-functions", "syntax-class-properties"] "plugins": ["external-helpers", "transform-arrow-functions", "syntax-class-properties"]
} }

View File

@ -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" "throws": "Unable to transform arrow inside class property"
} }

View File

@ -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"]
} }

View File

@ -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"]
} }

View File

@ -1,3 +1,3 @@
{ {
"plugins": ["external-helpers", "proposal-class-properties", "transform-es2015-arrow-functions"] "plugins": ["external-helpers", "proposal-class-properties", "transform-arrow-functions"]
} }

View File

@ -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