From be27114e7430c42ee7b0a9e92647876fb1521416 Mon Sep 17 00:00:00 2001 From: James Beavers Date: Wed, 4 Dec 2019 18:18:34 -0500 Subject: [PATCH] Add support for nullish coalescing operator in preset-env --- packages/babel-preset-env-standalone/package.json | 2 ++ .../babel-preset-env-standalone/src/available-plugins.js | 2 ++ packages/babel-preset-env/data/plugin-features.js | 1 + packages/babel-preset-env/data/plugins.json | 5 +++++ packages/babel-preset-env/data/shipped-proposals.js | 1 + packages/babel-preset-env/package.json | 2 ++ packages/babel-preset-env/src/available-plugins.js | 2 ++ .../corejs2/usage-browserslist-config-ignore/stdout.txt | 1 + .../corejs3/usage-browserslist-config-ignore/stdout.txt | 1 + .../fixtures/debug/corejs-without-usebuiltins/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs2-android/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs2-electron/stdout.txt | 1 + .../debug/entry-corejs2-force-all-transforms/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs2-no-import/stdout.txt | 1 + .../debug/entry-corejs2-proposals-chrome-71/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs2-proposals/stdout.txt | 1 + .../entry-corejs2-shippedProposals-chrome-71/stdout.txt | 1 + .../fixtures/debug/entry-corejs2-shippedProposals/stdout.txt | 1 + .../fixtures/debug/entry-corejs2-specific-targets/stdout.txt | 1 + .../debug/entry-corejs2-versions-decimals/stdout.txt | 1 + .../fixtures/debug/entry-corejs2-versions-strings/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs2/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-all-chrome-71/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-all/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-android/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-babel-polyfill/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-electron/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-es-chrome-71/stdout.txt | 1 + .../debug/entry-corejs3-es-proposals-chrome-71/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-es-proposals/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-es/stdout.txt | 1 + .../debug/entry-corejs3-force-all-transforms/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-no-import/stdout.txt | 1 + .../debug/entry-corejs3-proposals-chrome-71/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-proposals/stdout.txt | 1 + .../debug/entry-corejs3-runtime-only-chrome-71/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-runtime-only/stdout.txt | 1 + .../entry-corejs3-specific-entries-chrome-71/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-specific-entries/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-specific-targets/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-stable-chrome-71/stdout.txt | 1 + .../debug/entry-corejs3-stable-samsung-8.2/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-stable/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-stage-chrome-71/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-stage/stdout.txt | 1 + .../debug/entry-corejs3-versions-decimals/stdout.txt | 1 + .../entry-corejs3-versions-strings-minor-3.0/stdout.txt | 1 + .../entry-corejs3-versions-strings-minor-3.1/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-versions-strings/stdout.txt | 1 + .../fixtures/debug/entry-corejs3-web-chrome-71/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3-web/stdout.txt | 1 + .../test/fixtures/debug/entry-corejs3/stdout.txt | 1 + .../test/fixtures/debug/entry-no-corejs-no-import/stdout.txt | 1 + .../debug/entry-no-corejs-shippedProposals/stdout.txt | 1 + .../test/fixtures/debug/entry-no-corejs-uglify/stdout.txt | 1 + .../test/fixtures/debug/entry-no-corejs/stdout.txt | 1 + .../test/fixtures/debug/plugins-only/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-chrome-71-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-chrome-71-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-none-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-none-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-proposals-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-proposals-2/stdout.txt | 1 + .../debug/usage-corejs2-proposals-chrome-71-1/stdout.txt | 1 + .../debug/usage-corejs2-proposals-chrome-71-2/stdout.txt | 1 + .../debug/usage-corejs2-shippedProposals-1/stdout.txt | 1 + .../debug/usage-corejs2-shippedProposals-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs2-with-import/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-chrome-71-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-chrome-71-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-none-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-none-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-proposals-1/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-proposals-2/stdout.txt | 1 + .../debug/usage-corejs3-proposals-chrome-71-1/stdout.txt | 1 + .../debug/usage-corejs3-proposals-chrome-71-2/stdout.txt | 1 + .../debug/usage-corejs3-shippedProposals-1/stdout.txt | 1 + .../debug/usage-corejs3-shippedProposals-2/stdout.txt | 1 + .../usage-corejs3-versions-strings-minor-3.0-1/stdout.txt | 1 + .../usage-corejs3-versions-strings-minor-3.0-2/stdout.txt | 1 + .../usage-corejs3-versions-strings-minor-3.1-1/stdout.txt | 1 + .../usage-corejs3-versions-strings-minor-3.1-2/stdout.txt | 1 + .../test/fixtures/debug/usage-corejs3-with-import/stdout.txt | 1 + .../test/fixtures/debug/usage-no-corejs-1/stdout.txt | 1 + .../test/fixtures/debug/usage-no-corejs-2/stdout.txt | 1 + .../test/fixtures/debug/usage-no-corejs-none-1/stdout.txt | 1 + .../test/fixtures/debug/usage-no-corejs-none-2/stdout.txt | 1 + .../preset-options/safari-10_3-block-scoped/stdout.txt | 1 + 92 files changed, 100 insertions(+) diff --git a/packages/babel-preset-env-standalone/package.json b/packages/babel-preset-env-standalone/package.json index af9a02f5a8ab..b31257999de5 100644 --- a/packages/babel-preset-env-standalone/package.json +++ b/packages/babel-preset-env-standalone/package.json @@ -14,7 +14,9 @@ "devDependencies": { "@babel/plugin-proposal-dynamic-import": "^7.7.4", "@babel/plugin-proposal-json-strings": "^7.7.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4", "@babel/plugin-syntax-json-strings": "^7.7.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.7.4", "@babel/plugin-syntax-top-level-await": "^7.7.4", "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4", "@babel/plugin-transform-new-target": "^7.7.4", diff --git a/packages/babel-preset-env-standalone/src/available-plugins.js b/packages/babel-preset-env-standalone/src/available-plugins.js index 7259b2ea378f..11c0ecd93464 100644 --- a/packages/babel-preset-env-standalone/src/available-plugins.js +++ b/packages/babel-preset-env-standalone/src/available-plugins.js @@ -5,8 +5,10 @@ const notIncludedPlugins = { "transform-new-target": require("@babel/plugin-transform-new-target"), "proposal-json-strings": require("@babel/plugin-proposal-json-strings"), "proposal-dynamic-import": require("@babel/plugin-proposal-dynamic-import"), + "proposal-nullish-coalescing-operator": require("@babel/plugin-proposal-nullish-coalescing-operator"), "syntax-json-strings": require("@babel/plugin-syntax-json-strings"), "syntax-top-level-await": require("@babel/plugin-syntax-top-level-await"), + "syntax-nullish-coalescing-operator": require("@babel/plugin-syntax-nullish-coalescing-operator"), }; Object.keys(notIncludedPlugins).forEach(pluginName => { diff --git a/packages/babel-preset-env/data/plugin-features.js b/packages/babel-preset-env/data/plugin-features.js index 3a84be381683..e8fd8dbe28fc 100644 --- a/packages/babel-preset-env/data/plugin-features.js +++ b/packages/babel-preset-env/data/plugin-features.js @@ -101,6 +101,7 @@ const es = { "transform-member-expression-literals": "Object/array literal extensions / Reserved words as property names", "transform-property-literals": "Object/array literal extensions / Reserved words as property names", "transform-reserved-words": "Miscellaneous / Unreserved words", + "proposal-nullish-coalescing-operator": "nullish coalescing operator (??)", }; const proposals = require("./shipped-proposals").features; diff --git a/packages/babel-preset-env/data/plugins.json b/packages/babel-preset-env/data/plugins.json index f4a5771b01c3..0e24c36f68b2 100644 --- a/packages/babel-preset-env/data/plugins.json +++ b/packages/babel-preset-env/data/plugins.json @@ -349,5 +349,10 @@ "phantom": "2", "samsung": "2.1", "electron": "0.2" + }, + "proposal-nullish-coalescing-operator": { + "chrome": "80", + "firefox": "72", + "opera": "67" } } diff --git a/packages/babel-preset-env/data/shipped-proposals.js b/packages/babel-preset-env/data/shipped-proposals.js index 90864b6c94b6..c3191f604c61 100644 --- a/packages/babel-preset-env/data/shipped-proposals.js +++ b/packages/babel-preset-env/data/shipped-proposals.js @@ -9,6 +9,7 @@ const pluginSyntaxMap = new Map([ ["proposal-optional-catch-binding", "syntax-optional-catch-binding"], ["proposal-unicode-property-regex", null], ["proposal-json-strings", "syntax-json-strings"], + ["proposal-nullish-coalescing-operator", "syntax-nullish-coalescing-operator"], ]); module.exports = { proposalPlugins, pluginSyntaxMap }; diff --git a/packages/babel-preset-env/package.json b/packages/babel-preset-env/package.json index 6e43b2fff2ea..e1714dc1ff71 100644 --- a/packages/babel-preset-env/package.json +++ b/packages/babel-preset-env/package.json @@ -19,12 +19,14 @@ "@babel/plugin-proposal-async-generator-functions": "^7.7.4", "@babel/plugin-proposal-dynamic-import": "^7.7.4", "@babel/plugin-proposal-json-strings": "^7.7.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4", "@babel/plugin-proposal-object-rest-spread": "^7.7.4", "@babel/plugin-proposal-optional-catch-binding": "^7.7.4", "@babel/plugin-proposal-unicode-property-regex": "^7.7.4", "@babel/plugin-syntax-async-generators": "^7.7.4", "@babel/plugin-syntax-dynamic-import": "^7.7.4", "@babel/plugin-syntax-json-strings": "^7.7.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.7.4", "@babel/plugin-syntax-object-rest-spread": "^7.7.4", "@babel/plugin-syntax-optional-catch-binding": "^7.7.4", "@babel/plugin-syntax-top-level-await": "^7.7.4", diff --git a/packages/babel-preset-env/src/available-plugins.js b/packages/babel-preset-env/src/available-plugins.js index 8ce0c72f1aa0..4f7e50e80cf1 100644 --- a/packages/babel-preset-env/src/available-plugins.js +++ b/packages/babel-preset-env/src/available-plugins.js @@ -7,6 +7,7 @@ export default { "syntax-object-rest-spread": require("@babel/plugin-syntax-object-rest-spread"), "syntax-optional-catch-binding": require("@babel/plugin-syntax-optional-catch-binding"), "syntax-top-level-await": require("@babel/plugin-syntax-top-level-await"), + "syntax-nullish-coalescing-operator": require("@babel/plugin-syntax-nullish-coalescing-operator"), "transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"), "proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"), "proposal-dynamic-import": require("@babel/plugin-proposal-dynamic-import"), @@ -44,4 +45,5 @@ export default { "proposal-optional-catch-binding": require("@babel/plugin-proposal-optional-catch-binding"), "transform-regenerator": require("@babel/plugin-transform-regenerator"), "proposal-unicode-property-regex": require("@babel/plugin-proposal-unicode-property-regex"), + "proposal-nullish-coalescing-operator": require("@babel/plugin-proposal-nullish-coalescing-operator"), }; diff --git a/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/stdout.txt b/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/stdout.txt index 3489d7294e09..e5ed41d58da3 100644 --- a/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/corejs2/usage-browserslist-config-ignore/stdout.txt @@ -26,6 +26,7 @@ Using plugins: proposal-json-strings { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } proposal-optional-catch-binding { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" } transform-named-capturing-groups-regex { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } + proposal-nullish-coalescing-operator { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } syntax-dynamic-import { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } Using polyfills with `usage` option: diff --git a/packages/babel-preset-env/test/fixtures/corejs3/usage-browserslist-config-ignore/stdout.txt b/packages/babel-preset-env/test/fixtures/corejs3/usage-browserslist-config-ignore/stdout.txt index 5b3c33fd0b12..a5341f4780de 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/usage-browserslist-config-ignore/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/corejs3/usage-browserslist-config-ignore/stdout.txt @@ -26,6 +26,7 @@ Using plugins: proposal-json-strings { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } proposal-optional-catch-binding { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" } transform-named-capturing-groups-regex { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } + proposal-nullish-coalescing-operator { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } syntax-dynamic-import { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" } Using polyfills with `usage` option: diff --git a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt index d263c3020966..6629a86c11ff 100644 --- a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt @@ -39,6 +39,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-android/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-android/stdout.txt index b2d6215dfff4..a7e49a6caf19 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-android/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-android/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-optional-catch-binding { "android":"4" } transform-named-capturing-groups-regex { "android":"4" } transform-reserved-words { "android":"4" } + proposal-nullish-coalescing-operator { "android":"4" } transform-modules-commonjs { "android":"4" } proposal-dynamic-import { "android":"4" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-electron/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-electron/stdout.txt index bfc587d621ae..ada4b0fd4852 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-electron/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-electron/stdout.txt @@ -33,6 +33,7 @@ Using plugins: transform-named-capturing-groups-regex { "electron":"0.36" } transform-member-expression-literals { "electron":"0.36" } transform-property-literals { "electron":"0.36" } + proposal-nullish-coalescing-operator { "electron":"0.36" } transform-modules-commonjs { "electron":"0.36" } proposal-dynamic-import { "electron":"0.36" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-force-all-transforms/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-force-all-transforms/stdout.txt index f5645e48ccb3..3674330f50e1 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-force-all-transforms/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-force-all-transforms/stdout.txt @@ -39,6 +39,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator { "chrome":"55" } syntax-dynamic-import { "chrome":"55" } Using polyfills with `entry` option: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-no-import/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-no-import/stdout.txt index fc924a413e56..2a1e330ce0a5 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-no-import/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-no-import/stdout.txt @@ -20,6 +20,7 @@ Using plugins: proposal-json-strings { "node":"6" } proposal-optional-catch-binding { "node":"6" } transform-named-capturing-groups-regex { "node":"6" } + proposal-nullish-coalescing-operator { "node":"6" } transform-modules-commonjs { "node":"6" } proposal-dynamic-import { "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals-chrome-71/stdout.txt index 632adbae014a..7d7af6aaf5a9 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals/stdout.txt index bea5ddcef506..92c9c2ac0db6 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-proposals/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals-chrome-71/stdout.txt index 583e108fd4cf..e7baf581b962 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals/stdout.txt index bc8c000777a8..76625ce20dd3 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-shippedProposals/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/stdout.txt index fd3e8b442630..76aa81e714b1 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-specific-targets/stdout.txt @@ -41,6 +41,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } proposal-optional-catch-binding { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-named-capturing-groups-regex { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } + proposal-nullish-coalescing-operator { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-modules-commonjs { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } proposal-dynamic-import { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-decimals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-decimals/stdout.txt index afe468aa8aba..80189a5acf5d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-decimals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-decimals/stdout.txt @@ -49,6 +49,7 @@ Using plugins: transform-named-capturing-groups-regex { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } transform-member-expression-literals { "electron":"0.36" } transform-property-literals { "electron":"0.36" } + proposal-nullish-coalescing-operator { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } transform-modules-commonjs { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } proposal-dynamic-import { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-strings/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-strings/stdout.txt index c14636d386e1..7f1dd74d712d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-strings/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2-versions-strings/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6.10" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6.10" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6.10" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6.10" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6.10" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6.10" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2/stdout.txt index 14ad1ce4b6cd..cd50149286ce 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs2/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all-chrome-71/stdout.txt index 6b47f470f6aa..ec85da46cf9a 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all/stdout.txt index 38e834034f84..9ea0f186a9ab 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-all/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-android/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-android/stdout.txt index 684f0ebd9aa1..ae351acf2fd4 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-android/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-android/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-optional-catch-binding { "android":"4" } transform-named-capturing-groups-regex { "android":"4" } transform-reserved-words { "android":"4" } + proposal-nullish-coalescing-operator { "android":"4" } transform-modules-commonjs { "android":"4" } proposal-dynamic-import { "android":"4" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-babel-polyfill/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-babel-polyfill/stdout.txt index e730eb6421ca..7c51b4e24596 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-babel-polyfill/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-babel-polyfill/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-electron/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-electron/stdout.txt index 32c6a7530002..f5e9270fb1e9 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-electron/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-electron/stdout.txt @@ -33,6 +33,7 @@ Using plugins: transform-named-capturing-groups-regex { "electron":"0.36" } transform-member-expression-literals { "electron":"0.36" } transform-property-literals { "electron":"0.36" } + proposal-nullish-coalescing-operator { "electron":"0.36" } transform-modules-commonjs { "electron":"0.36" } proposal-dynamic-import { "electron":"0.36" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-chrome-71/stdout.txt index b3751d6de895..f5e251037852 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals-chrome-71/stdout.txt index 179cbc24c06f..2d509ea82fb0 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals/stdout.txt index 39b7566a4edc..9976c4bae7fa 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es-proposals/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es/stdout.txt index cf8816e74969..fc8166382a15 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-es/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-force-all-transforms/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-force-all-transforms/stdout.txt index 2733197a3382..83f2aad19492 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-force-all-transforms/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-force-all-transforms/stdout.txt @@ -39,6 +39,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator { "chrome":"55" } syntax-dynamic-import { "chrome":"55" } Using polyfills with `entry` option: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-no-import/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-no-import/stdout.txt index 7dd81bf8bd49..7229b913ecfb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-no-import/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-no-import/stdout.txt @@ -20,6 +20,7 @@ Using plugins: proposal-json-strings { "node":"6" } proposal-optional-catch-binding { "node":"6" } transform-named-capturing-groups-regex { "node":"6" } + proposal-nullish-coalescing-operator { "node":"6" } transform-modules-commonjs { "node":"6" } proposal-dynamic-import { "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals-chrome-71/stdout.txt index 3efcd119e087..540d13904272 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals/stdout.txt index b400e3b3da64..462ce8ea4d2d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-proposals/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only-chrome-71/stdout.txt index b964de442cc5..9a3f421bbcee 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only/stdout.txt index e7986cb8ca44..2345761e0594 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-runtime-only/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries-chrome-71/stdout.txt index 9b068053e50e..ac2fbbc3f598 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries/stdout.txt index 9b8ceb81a002..35a0bfb0faea 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-entries/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-targets/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-targets/stdout.txt index 2adaac616ba5..d1b76f3ff777 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-targets/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-specific-targets/stdout.txt @@ -41,6 +41,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } proposal-optional-catch-binding { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-named-capturing-groups-regex { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } + proposal-nullish-coalescing-operator { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-modules-commonjs { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } proposal-dynamic-import { "chrome":"54", "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-chrome-71/stdout.txt index e1ad31ad13ab..d48e428cf29e 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt index 7cff00543450..ee0d45c08921 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt @@ -14,6 +14,7 @@ Using plugins: proposal-json-strings { "samsung":"8.2" } proposal-optional-catch-binding { "samsung":"8.2" } transform-named-capturing-groups-regex { "samsung":"8.2" } + proposal-nullish-coalescing-operator { "samsung":"8.2" } transform-modules-commonjs { "samsung":"8.2" } proposal-dynamic-import { "samsung":"8.2" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable/stdout.txt index 223ef746fda9..38e1a32535f7 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage-chrome-71/stdout.txt index b6011886e4d9..1f1557adfd17 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage/stdout.txt index 9cee893f2a2e..c1ca87fafa90 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stage/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-decimals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-decimals/stdout.txt index ad6cde3c24aa..5f624c446531 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-decimals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-decimals/stdout.txt @@ -49,6 +49,7 @@ Using plugins: transform-named-capturing-groups-regex { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } transform-member-expression-literals { "electron":"0.36" } transform-property-literals { "electron":"0.36" } + proposal-nullish-coalescing-operator { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } transform-modules-commonjs { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } proposal-dynamic-import { "chrome":"54", "electron":"0.36", "ie":"10", "node":"6.1" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.0/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.0/stdout.txt index 8d8cf7fe2333..2f6de2ffccdd 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.0/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.0/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6.10" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6.10" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6.10" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6.10" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6.10" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6.10" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.1/stdout.txt index 31c21bace19c..d00ec08df26e 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings-minor-3.1/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6.10" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6.10" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6.10" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6.10" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6.10" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6.10" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings/stdout.txt index 74c154a2b26d..078665aa4d1d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-versions-strings/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6.10" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6.10" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6.10" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6.10" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6.10" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6.10" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web-chrome-71/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web-chrome-71/stdout.txt index edbc01bf1056..c63b938ea50d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web-chrome-71/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web-chrome-71/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web/stdout.txt index d92ec30279e3..d8c2a24f0bbb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-web/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3/stdout.txt index a35cd149137c..58721ee35397 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stdout.txt index 55a1471d55d2..916aa2e136cc 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stdout.txt @@ -20,6 +20,7 @@ Using plugins: proposal-json-strings { "node":"6" } proposal-optional-catch-binding { "node":"6" } transform-named-capturing-groups-regex { "node":"6" } + proposal-nullish-coalescing-operator { "node":"6" } transform-modules-commonjs { "node":"6" } proposal-dynamic-import { "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stdout.txt index e28519a1f6ad..e4b6128f4ba2 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stdout.txt @@ -37,6 +37,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator {} transform-modules-commonjs {} proposal-dynamic-import {} diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stdout.txt index d051b5019f6b..74528e419b3f 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stdout.txt @@ -42,6 +42,7 @@ Using plugins: transform-member-expression-literals {} transform-property-literals {} transform-reserved-words {} + proposal-nullish-coalescing-operator { "chrome":"55" } syntax-dynamic-import { "chrome":"55" } Using polyfills with `entry` option: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stdout.txt index 596d823fbcd7..66ef47488f1e 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stdout.txt @@ -38,6 +38,7 @@ Using plugins: proposal-json-strings { "chrome":"54", "ie":"10", "node":"6" } proposal-optional-catch-binding { "chrome":"54", "ie":"10", "node":"6" } transform-named-capturing-groups-regex { "chrome":"54", "ie":"10", "node":"6" } + proposal-nullish-coalescing-operator { "chrome":"54", "ie":"10", "node":"6" } transform-modules-commonjs { "chrome":"54", "ie":"10", "node":"6" } proposal-dynamic-import { "chrome":"54", "ie":"10", "node":"6" } diff --git a/packages/babel-preset-env/test/fixtures/debug/plugins-only/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/plugins-only/stdout.txt index 58781f6b2ec1..010131b14c01 100644 --- a/packages/babel-preset-env/test/fixtures/debug/plugins-only/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/plugins-only/stdout.txt @@ -27,6 +27,7 @@ Using plugins: proposal-json-strings { "firefox":"52", "node":"7.4" } proposal-optional-catch-binding { "firefox":"52", "node":"7.4" } transform-named-capturing-groups-regex { "firefox":"52", "node":"7.4" } + proposal-nullish-coalescing-operator { "firefox":"52", "node":"7.4" } transform-modules-commonjs { "firefox":"52", "node":"7.4" } proposal-dynamic-import { "firefox":"52", "node":"7.4" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-1/stdout.txt index 3a4742537bf8..c2dc7087e77d 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-2/stdout.txt index 7337bd97a95e..38b4113170e8 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-1/stdout.txt index 19256d92e761..dd8fccb0de1a 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-1/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-2/stdout.txt index c03ef9bbeaf2..ca0037933836 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-chrome-71-2/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-1/stdout.txt index f17969a7c09a..2e9612843ce3 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-2/stdout.txt index 0c1cce6bfe7d..b9c97b817a9b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-none-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-1/stdout.txt index 54f7d2b6892c..08f3495ddc46 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-2/stdout.txt index f251da3a1fb9..1c2689304e16 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-1/stdout.txt index aabc7e867e83..fe17a6f011ac 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-1/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-2/stdout.txt index 9154f4f3ace6..d6a9d9c178f0 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-proposals-chrome-71-2/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-1/stdout.txt index 65b636097824..8d5425cb4b96 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-2/stdout.txt index baea99e275f5..a283ff644b34 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-shippedProposals-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-with-import/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-with-import/stdout.txt index c5f336bc2da2..97da4fd28a65 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-with-import/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs2-with-import/stdout.txt @@ -15,6 +15,7 @@ Using plugins: proposal-json-strings { "chrome":"55" } proposal-optional-catch-binding { "chrome":"55" } transform-named-capturing-groups-regex { "chrome":"55" } + proposal-nullish-coalescing-operator { "chrome":"55" } transform-modules-commonjs { "chrome":"55" } proposal-dynamic-import { "chrome":"55" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-1/stdout.txt index 5420011af7ff..caffd0e4f5ab 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-2/stdout.txt index 51c71b8b36d6..3eb18fe625ab 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-1/stdout.txt index 7e9cc063c496..480bb47132db 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-1/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-2/stdout.txt index 9aaf62342062..721459bf7ccd 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-chrome-71-2/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-1/stdout.txt index 0cb836caf43e..c82e61998e10 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-2/stdout.txt index 0ca472fb637f..cb2832dea3f6 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-none-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-1/stdout.txt index a1c85b5f240b..3f74faaf67ae 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-2/stdout.txt index d21f014f1314..4c990d642712 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-1/stdout.txt index 6000e5d705cd..b1a0d1222edc 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-1/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-2/stdout.txt index c12a9314e829..98c5cb855915 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-proposals-chrome-71-2/stdout.txt @@ -12,6 +12,7 @@ Using plugins: syntax-object-rest-spread { "chrome":"71" } syntax-json-strings { "chrome":"71" } syntax-optional-catch-binding { "chrome":"71" } + proposal-nullish-coalescing-operator { "chrome":"71" } transform-modules-commonjs { "chrome":"71" } proposal-dynamic-import { "chrome":"71" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-1/stdout.txt index 56aa662832b0..038da25a462b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-2/stdout.txt index 848d033d61be..09e764024562 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-shippedProposals-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-1/stdout.txt index d7384c46888d..4b325a7d39c0 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-2/stdout.txt index 3897ddf434ae..ac17bbbc754b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-1/stdout.txt index 31bc70824f26..6939ea6fa92f 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-2/stdout.txt index 29b751d07ae8..8be62121b3a5 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-with-import/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-with-import/stdout.txt index b6e9e3ab1f49..342e815187ee 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-with-import/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-with-import/stdout.txt @@ -15,6 +15,7 @@ Using plugins: proposal-json-strings { "chrome":"55" } proposal-optional-catch-binding { "chrome":"55" } transform-named-capturing-groups-regex { "chrome":"55" } + proposal-nullish-coalescing-operator { "chrome":"55" } transform-modules-commonjs { "chrome":"55" } proposal-dynamic-import { "chrome":"55" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stdout.txt index eb4cf5b632c2..1b8f48da546f 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stdout.txt index 77a2227dde4e..466fbb165abb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stdout.txt index d2f78b1901c6..d228471ae350 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stdout.txt index cc7e91a5d56d..2a37c4af58f9 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stdout.txt @@ -37,6 +37,7 @@ Using plugins: proposal-json-strings { "chrome":"52", "firefox":"50", "ie":"11" } proposal-optional-catch-binding { "chrome":"52", "firefox":"50", "ie":"11" } transform-named-capturing-groups-regex { "chrome":"52", "firefox":"50", "ie":"11" } + proposal-nullish-coalescing-operator { "chrome":"52", "firefox":"50", "ie":"11" } transform-modules-commonjs { "chrome":"52", "firefox":"50", "ie":"11" } proposal-dynamic-import { "chrome":"52", "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/preset-options/safari-10_3-block-scoped/stdout.txt b/packages/babel-preset-env/test/fixtures/preset-options/safari-10_3-block-scoped/stdout.txt index ba01385d275e..aa24aa73de2c 100644 --- a/packages/babel-preset-env/test/fixtures/preset-options/safari-10_3-block-scoped/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/preset-options/safari-10_3-block-scoped/stdout.txt @@ -20,6 +20,7 @@ Using plugins: proposal-json-strings { "safari":"10" } proposal-optional-catch-binding { "safari":"10" } transform-named-capturing-groups-regex { "safari":"10" } + proposal-nullish-coalescing-operator { "safari":"10" } transform-modules-commonjs { "safari":"10" } proposal-dynamic-import { "safari":"10" }