├── .eslintignore ├── .eslintrc ├── .github └── stale.yml ├── .gitignore ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── codecov.yml ├── data ├── built-in-features.js ├── built-ins.json ├── plugin-features.js └── plugins.json ├── package.json ├── scripts ├── build-data.js └── smoke-test.js ├── src ├── default-includes.js ├── index.js ├── module-transformations.js ├── normalize-options.js ├── targets-parser.js ├── transform-polyfill-require-plugin.js └── utils.js ├── test ├── .eslintrc ├── debug-fixtures.js ├── debug-fixtures │ ├── android │ │ ├── options.json │ │ └── stdout.txt │ ├── builtins-uglify │ │ ├── options.json │ │ └── stdout.txt │ ├── builtins │ │ ├── options.json │ │ └── stdout.txt │ ├── electron │ │ ├── options.json │ │ └── stdout.txt │ ├── plugins-only │ │ ├── options.json │ │ └── stdout.txt │ ├── specific-targets │ │ ├── options.json │ │ └── stdout.txt │ ├── versions-decimals │ │ ├── options.json │ │ └── stdout.txt │ └── versions-strings │ │ ├── options.json │ │ └── stdout.txt ├── fixtures.js ├── fixtures │ ├── plugin-options │ │ ├── filters-duplicates │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── regenerator-false │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ └── regenerator-true │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ ├── preset-options │ │ ├── core-js │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── electron │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── empty-options │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── exclude-built-ins │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── exclude-include │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── exclude-regenerator │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── exclude │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── ie-11-built-ins │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── include-built-ins │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── include │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── ios-10 │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── ios-6 │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── modules-false │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── no-options │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── no-transform │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── spec │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── uglify │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-all-exec │ │ │ ├── exec.js │ │ │ └── options.json │ │ ├── use-builtins-all │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-chrome-48 │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-chrome-49 │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-chromeandroid │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-ie-9 │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-import │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-multiple-imports │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-node-web │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ ├── use-builtins-node │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ │ └── use-builtins-require │ │ │ ├── actual.js │ │ │ ├── expected.js │ │ │ └── options.json │ └── sanity │ │ ├── check-es2015-constants │ │ ├── exec.js │ │ └── options.json │ │ └── transform-duplicate-keys │ │ ├── actual.js │ │ ├── expected.js │ │ └── options.json ├── index.spec.js ├── normalize-options.spec.js ├── targets-parser.spec.js └── utils.spec.js └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/README.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/codecov.yml -------------------------------------------------------------------------------- /data/built-in-features.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/data/built-in-features.js -------------------------------------------------------------------------------- /data/built-ins.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/data/built-ins.json -------------------------------------------------------------------------------- /data/plugin-features.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/data/plugin-features.js -------------------------------------------------------------------------------- /data/plugins.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/data/plugins.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/package.json -------------------------------------------------------------------------------- /scripts/build-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/scripts/build-data.js -------------------------------------------------------------------------------- /scripts/smoke-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/scripts/smoke-test.js -------------------------------------------------------------------------------- /src/default-includes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/default-includes.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/index.js -------------------------------------------------------------------------------- /src/module-transformations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/module-transformations.js -------------------------------------------------------------------------------- /src/normalize-options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/normalize-options.js -------------------------------------------------------------------------------- /src/targets-parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/targets-parser.js -------------------------------------------------------------------------------- /src/transform-polyfill-require-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/transform-polyfill-require-plugin.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/src/utils.js -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/debug-fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures.js -------------------------------------------------------------------------------- /test/debug-fixtures/android/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/android/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/android/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/android/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/builtins-uglify/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/builtins-uglify/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/builtins-uglify/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/builtins-uglify/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/builtins/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/builtins/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/builtins/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/builtins/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/electron/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/electron/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/electron/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/electron/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/plugins-only/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/plugins-only/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/plugins-only/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/plugins-only/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/specific-targets/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/specific-targets/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/specific-targets/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/specific-targets/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/versions-decimals/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/versions-decimals/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/versions-decimals/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/versions-decimals/stdout.txt -------------------------------------------------------------------------------- /test/debug-fixtures/versions-strings/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/versions-strings/options.json -------------------------------------------------------------------------------- /test/debug-fixtures/versions-strings/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/debug-fixtures/versions-strings/stdout.txt -------------------------------------------------------------------------------- /test/fixtures.js: -------------------------------------------------------------------------------- 1 | require("babel-helper-plugin-test-runner")(__dirname); 2 | -------------------------------------------------------------------------------- /test/fixtures/plugin-options/filters-duplicates/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/plugin-options/filters-duplicates/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/plugin-options/filters-duplicates/expected.js -------------------------------------------------------------------------------- /test/fixtures/plugin-options/filters-duplicates/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/plugin-options/filters-duplicates/options.json -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-false/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-false/expected.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-false/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/plugin-options/regenerator-false/options.json -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-true/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-true/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/plugin-options/regenerator-true/expected.js -------------------------------------------------------------------------------- /test/fixtures/plugin-options/regenerator-true/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/plugin-options/regenerator-true/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/core-js/actual.js: -------------------------------------------------------------------------------- 1 | import "core-js"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/core-js/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/core-js/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/core-js/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/core-js/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/electron/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 3 | a ** b; 4 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/electron/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/electron/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/electron/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/electron/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/empty-options/actual.js: -------------------------------------------------------------------------------- 1 | const a = "1"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/empty-options/expected.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var a = "1"; -------------------------------------------------------------------------------- /test/fixtures/preset-options/empty-options/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/empty-options/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-built-ins/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-built-ins/expected.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-built-ins/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude-built-ins/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-include/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 3 | async function a() { 4 | await 1; 5 | } 6 | 7 | (() => {}) -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-include/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude-include/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-include/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude-include/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-regenerator/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-regenerator/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude-regenerator/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude-regenerator/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude-regenerator/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude/actual.js: -------------------------------------------------------------------------------- 1 | async function a() { 2 | await 1; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude/expected.js: -------------------------------------------------------------------------------- 1 | async function a() { 2 | await 1; 3 | } -------------------------------------------------------------------------------- /test/fixtures/preset-options/exclude/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/exclude/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/ie-11-built-ins/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/ie-11-built-ins/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/ie-11-built-ins/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/ie-11-built-ins/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/ie-11-built-ins/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/include-built-ins/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; -------------------------------------------------------------------------------- /test/fixtures/preset-options/include-built-ins/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/include-built-ins/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/include-built-ins/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/include-built-ins/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/include/actual.js: -------------------------------------------------------------------------------- 1 | import a from "a"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/include/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/include/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/include/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/include/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-10/actual.js: -------------------------------------------------------------------------------- 1 | const a = () => 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-10/expected.js: -------------------------------------------------------------------------------- 1 | const a = () => 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-10/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/ios-10/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-6/actual.js: -------------------------------------------------------------------------------- 1 | import "core-js"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-6/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/ios-6/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/ios-6/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/ios-6/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/modules-false/actual.js: -------------------------------------------------------------------------------- 1 | import a from "a"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/modules-false/expected.js: -------------------------------------------------------------------------------- 1 | import a from "a"; -------------------------------------------------------------------------------- /test/fixtures/preset-options/modules-false/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/modules-false/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-options/actual.js: -------------------------------------------------------------------------------- 1 | const a = "1"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-options/expected.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var a = "1"; -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-options/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/no-options/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-transform/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/no-transform/actual.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-transform/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/no-transform/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/no-transform/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/no-transform/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/spec/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/spec/actual.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/spec/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/spec/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/spec/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/spec/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/uglify/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 3 | const a = 1; 4 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/uglify/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/uglify/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/uglify/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/uglify/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-all-exec/exec.js: -------------------------------------------------------------------------------- 1 | if (parseInt(process.version.slice(1)) > 5) { 2 | require('babel-polyfill'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-all-exec/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-all-exec/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-all/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-all/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-all/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-all/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-all/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-48/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 1 ** 2; 3 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-48/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chrome-48/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-48/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chrome-48/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-49/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 1 ** 2; 3 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-49/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chrome-49/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chrome-49/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chrome-49/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chromeandroid/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 1 ** 2; 3 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chromeandroid/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chromeandroid/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-chromeandroid/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-chromeandroid/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-ie-9/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-ie-9/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-ie-9/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-ie-9/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-ie-9/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-import/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | 1 ** 2; 3 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-import/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-import/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-import/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-import/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-multiple-imports/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-multiple-imports/actual.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-multiple-imports/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-multiple-imports/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-multiple-imports/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-multiple-imports/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node-web/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node-web/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-node-web/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node-web/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-node-web/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-polyfill"; 2 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-node/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-node/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-node/options.json -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-require/actual.js: -------------------------------------------------------------------------------- 1 | require("babel-polyfill"); 2 | 3 | 1 ** 2; 4 | -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-require/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-require/expected.js -------------------------------------------------------------------------------- /test/fixtures/preset-options/use-builtins-require/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/preset-options/use-builtins-require/options.json -------------------------------------------------------------------------------- /test/fixtures/sanity/check-es2015-constants/exec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/sanity/check-es2015-constants/exec.js -------------------------------------------------------------------------------- /test/fixtures/sanity/check-es2015-constants/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/sanity/check-es2015-constants/options.json -------------------------------------------------------------------------------- /test/fixtures/sanity/transform-duplicate-keys/actual.js: -------------------------------------------------------------------------------- 1 | var a = { b:1, b: 2}; 2 | -------------------------------------------------------------------------------- /test/fixtures/sanity/transform-duplicate-keys/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/sanity/transform-duplicate-keys/expected.js -------------------------------------------------------------------------------- /test/fixtures/sanity/transform-duplicate-keys/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/fixtures/sanity/transform-duplicate-keys/options.json -------------------------------------------------------------------------------- /test/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/index.spec.js -------------------------------------------------------------------------------- /test/normalize-options.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/normalize-options.spec.js -------------------------------------------------------------------------------- /test/targets-parser.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/targets-parser.spec.js -------------------------------------------------------------------------------- /test/utils.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/test/utils.spec.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/babel/babel-preset-env/HEAD/yarn.lock --------------------------------------------------------------------------------