diff --git a/packages/babel-compat-data/data/plugins.json b/packages/babel-compat-data/data/plugins.json index 801f033f09fe..f748609037d3 100644 --- a/packages/babel-compat-data/data/plugins.json +++ b/packages/babel-compat-data/data/plugins.json @@ -268,6 +268,17 @@ "samsung": "5", "electron": "0.37" }, + "transform-unicode-escapes": { + "chrome": "44", + "edge": "12", + "firefox": "53", + "safari": "9", + "node": "4", + "ios": "9", + "samsung": "4", + "opera": "31", + "electron": "0.31" + }, "transform-unicode-regex": { "chrome": "50", "opera": "37", diff --git a/packages/babel-compat-data/scripts/data/plugin-features.js b/packages/babel-compat-data/scripts/data/plugin-features.js index 0671413626fa..4f1d724bdf2a 100644 --- a/packages/babel-compat-data/scripts/data/plugin-features.js +++ b/packages/babel-compat-data/scripts/data/plugin-features.js @@ -62,6 +62,7 @@ const es2015 = { 'RegExp "y" and "u" flags / "y" flag', ], }, + "transform-unicode-escapes": "Unicode code point escapes", "transform-unicode-regex": { features: [ 'RegExp "y" and "u" flags / "u" flag, case folding', diff --git a/packages/babel-preset-env/package.json b/packages/babel-preset-env/package.json index 566f99d71762..04e28c19ad00 100644 --- a/packages/babel-preset-env/package.json +++ b/packages/babel-preset-env/package.json @@ -63,6 +63,7 @@ "@babel/plugin-transform-sticky-regex": "^7.8.3", "@babel/plugin-transform-template-literals": "^7.8.3", "@babel/plugin-transform-typeof-symbol": "^7.8.4", + "@babel/plugin-transform-unicode-escapes": "^7.8.3", "@babel/plugin-transform-unicode-regex": "^7.8.3", "@babel/preset-modules": "^0.1.3", "@babel/types": "^7.9.6", diff --git a/packages/babel-preset-env/src/available-plugins.js b/packages/babel-preset-env/src/available-plugins.js index ef815702aa47..ffdd2a1aa175 100644 --- a/packages/babel-preset-env/src/available-plugins.js +++ b/packages/babel-preset-env/src/available-plugins.js @@ -49,6 +49,7 @@ import transformSpread from "@babel/plugin-transform-spread"; import transformStickyRegex from "@babel/plugin-transform-sticky-regex"; import transformTemplateLiterals from "@babel/plugin-transform-template-literals"; import transformTypeofSymbol from "@babel/plugin-transform-typeof-symbol"; +import transformUnicodeEscapes from "@babel/plugin-transform-unicode-escapes"; import transformUnicodeRegex from "@babel/plugin-transform-unicode-regex"; import bugfixAsyncArrowsInClass from "@babel/preset-modules/lib/plugins/transform-async-arrows-in-class"; @@ -113,5 +114,6 @@ export default { "transform-sticky-regex": transformStickyRegex, "transform-template-literals": transformTemplateLiterals, "transform-typeof-symbol": transformTypeofSymbol, + "transform-unicode-escapes": transformUnicodeEscapes, "transform-unicode-regex": transformUnicodeRegex, }; diff --git a/packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-chrome-40/stdout.txt b/packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-chrome-40/stdout.txt index 4b4b9cf2469b..42b3c0122d78 100644 --- a/packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-chrome-40/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/bugfixes/edge-default-params-chrome-40/stdout.txt @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties { "chrome":"40" } transform-for-of { "chrome":"40" } transform-sticky-regex { "chrome":"40" } + transform-unicode-escapes { "chrome":"40" } transform-unicode-regex { "chrome":"40" } transform-spread { "chrome":"40" } transform-block-scoping { "chrome":"40" } diff --git a/packages/babel-preset-env/test/fixtures/debug/browserslists-android-3/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/browserslists-android-3/stdout.txt index 8aca688738cf..5d2646157074 100644 --- a/packages/babel-preset-env/test/fixtures/debug/browserslists-android-3/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/browserslists-android-3/stdout.txt @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties { "android":"3" } transform-for-of { "android":"3" } transform-sticky-regex { "android":"3" } + transform-unicode-escapes { "android":"3" } transform-unicode-regex { "android":"3" } transform-spread { "android":"3" } transform-destructuring { "android":"3" } diff --git a/packages/babel-preset-env/test/fixtures/debug/browserslists-defaults/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/browserslists-defaults/stdout.txt index 5b0e34506ab3..a5948b446b4b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/browserslists-defaults/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/browserslists-defaults/stdout.txt @@ -39,6 +39,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "ie":"11" } 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 22ef23b56af2..e38340b582aa 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 @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 61e29fd11fc4..07ea2154593d 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 @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties { "android":"4" } transform-for-of { "android":"4" } transform-sticky-regex { "android":"4" } + transform-unicode-escapes { "android":"4" } transform-unicode-regex { "android":"4" } transform-spread { "android":"4" } transform-destructuring { "android":"4" } 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 1957d44bf5c7..e0af4f56cd61 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 @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 450f60f279b1..d6790ec06caf 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 @@ -30,6 +30,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 a23c7d99305d..0efff26b48d5 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 d8ff428f891a..a270601f4bd0 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 @@ -37,6 +37,7 @@ Using plugins: transform-computed-properties { "ie":"10", "safari":"7" } transform-for-of { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-sticky-regex { "ie":"10", "ios":"9", "safari":"7" } + transform-unicode-escapes { "firefox":"49", "ie":"10", "safari":"7" } transform-unicode-regex { "ie":"10", "ios":"9", "safari":"7" } transform-spread { "ie":"10", "ios":"9", "safari":"7" } transform-destructuring { "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 5e0461926b22..83111b64646b 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 @@ -43,6 +43,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "electron":"0.36", "ie":"10", "node":"6.1" } transform-sticky-regex { "electron":"0.36", "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "electron":"0.36", "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "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 ceefa4e733e1..eaea0d0653c7 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"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 5244ee91b413..d61f58659bef 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10", "node":"6" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"10", "node":"6" } 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 363c0bd3c67c..c82937aa9c1b 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 4ed2ea61df94..2598ed3ad41d 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 @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties { "android":"4" } transform-for-of { "android":"4" } transform-sticky-regex { "android":"4" } + transform-unicode-escapes { "android":"4" } transform-unicode-regex { "android":"4" } transform-spread { "android":"4" } transform-destructuring { "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 27066e050aff..b0a5d8b8408e 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 50609a36cdb0..642b12aac41f 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 27aca61b0e0c..8b63372c6e5f 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 f2048d5abaa8..621510c0caa6 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 @@ -32,6 +32,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 6019d4ccdc8a..5be4733d347c 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 @@ -30,6 +30,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 b28a0ffd93de..97a334407f01 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 e687ac4dbc31..72bcc4bcad1d 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 @@ -37,6 +37,7 @@ Using plugins: transform-computed-properties { "ie":"10", "safari":"7" } transform-for-of { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } transform-sticky-regex { "ie":"10", "ios":"9", "safari":"7" } + transform-unicode-escapes { "firefox":"49", "ie":"10", "safari":"7" } transform-unicode-regex { "ie":"10", "ios":"9", "safari":"7" } transform-spread { "ie":"10", "ios":"9", "safari":"7" } transform-destructuring { "edge":"13", "firefox":"49", "ie":"10", "ios":"9", "safari":"7" } 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 5c4d29fd8bb7..44c15dbd8fa7 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 7ccc0e599efb..a124bb23bb35 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 d54a72009d03..e0bc3e59b5cf 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 @@ -43,6 +43,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "electron":"0.36", "ie":"10", "node":"6.1" } transform-sticky-regex { "electron":"0.36", "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "electron":"0.36", "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "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 5c51854907ad..a791fa8bb25c 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"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 9d157e38564c..038f04373173 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"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 7e13e7aa70dd..046ba9c43aa8 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"10" } 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 48969ccc8be7..d8a97bc466e5 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 943367823653..bb15384ae70c 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10", "node":"6" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "ie":"10", "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 d3f31edabfe2..5c4b944d1916 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 @@ -31,6 +31,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 f72d6ce0d339..6575dd496548 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 @@ -35,6 +35,7 @@ Using plugins: transform-computed-properties {} transform-for-of {} transform-sticky-regex {} + transform-unicode-escapes {} transform-unicode-regex {} transform-spread {} transform-destructuring {} 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 6beee91afe13..f5bae02fca9e 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"10" } transform-for-of { "ie":"10", "node":"6" } transform-sticky-regex { "ie":"10" } + transform-unicode-escapes { "ie":"10" } transform-unicode-regex { "ie":"10" } transform-spread { "ie":"10" } transform-destructuring { "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 5df73c211101..d03017f54097 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 @@ -28,6 +28,7 @@ Using plugins: transform-literals { "firefox":"52" } transform-function-name { "firefox":"52" } transform-for-of { "firefox":"52" } + transform-unicode-escapes { "firefox":"52" } transform-destructuring { "firefox":"52" } 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 86d9ee9c268a..5d11f0292efa 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 0a9ec16db807..c2e91644b730 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 6d8652b78cdc..eecc8369739e 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 ccc7599dda50..15738ee29493 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 cd711febc4cc..84684166e0da 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 ace7d9316f59..5bea33c8717a 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 e9987a6c8ad7..6c1823a33c8d 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 c635aa38aba7..b79fe1f7af38 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 15055784cbe1..b72e59025a8b 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 1ba69f0d95a6..64bedff98a21 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 754bdb719947..20f2154d7384 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 fd82852217e7..3bb3da9097ed 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 2d1cbf4c9e26..19a90b47adc9 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 f723e9bfab49..af74441f807d 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 50d9dfd4faa3..734828ea0d9a 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 58804db33659..be09e3e8fd78 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 @@ -34,6 +34,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 d9325f917ac1..4579f2c1a33b 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 82dc0922f317..cfb581f2b978 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 c9852b6e5b36..45d9d8b50fd3 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 0b189d6a732d..27ee227d2bf4 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } 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 3d43e271e9ab..dbd065e328d6 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt index dbee5e8f3eb3..d9061acb2c57 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt @@ -3,4 +3,4 @@ WARNING: We noticed you're using the `useBuiltIns` option without declaring a co You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 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 0ab8583382c1..c37a1fc2431d 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 88512c2a579a..d7a676f138f3 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "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 991eaf43c452..f33dfedca1aa 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 @@ -33,6 +33,7 @@ Using plugins: transform-computed-properties { "ie":"11" } transform-for-of { "firefox":"50", "ie":"11" } transform-sticky-regex { "ie":"11" } + transform-unicode-escapes { "firefox":"50", "ie":"11" } transform-unicode-regex { "ie":"11" } transform-spread { "ie":"11" } transform-destructuring { "firefox":"50", "ie":"11" } diff --git a/packages/babel-standalone/package.json b/packages/babel-standalone/package.json index a95c4a5d0e24..4682251b9dbf 100644 --- a/packages/babel-standalone/package.json +++ b/packages/babel-standalone/package.json @@ -99,6 +99,7 @@ "@babel/plugin-transform-template-literals": "^7.8.3", "@babel/plugin-transform-typeof-symbol": "^7.8.4", "@babel/plugin-transform-typescript": "^7.9.6", + "@babel/plugin-transform-unicode-escapes": "^7.8.3", "@babel/plugin-transform-unicode-regex": "^7.8.3", "@babel/preset-env": "^7.9.6", "@babel/preset-flow": "^7.9.0", diff --git a/packages/babel-standalone/scripts/pluginConfig.json b/packages/babel-standalone/scripts/pluginConfig.json index 856d0869b5e5..7a773ceb5e8d 100644 --- a/packages/babel-standalone/scripts/pluginConfig.json +++ b/packages/babel-standalone/scripts/pluginConfig.json @@ -85,5 +85,6 @@ "transform-template-literals", "transform-typeof-symbol", "transform-typescript", + "transform-unicode-escapes", "transform-unicode-regex" ] diff --git a/packages/babel-standalone/src/generated/plugins.js b/packages/babel-standalone/src/generated/plugins.js index 0b55279003db..7b8416105ce2 100644 --- a/packages/babel-standalone/src/generated/plugins.js +++ b/packages/babel-standalone/src/generated/plugins.js @@ -89,6 +89,7 @@ import transformStrictMode from "@babel/plugin-transform-strict-mode"; import transformTemplateLiterals from "@babel/plugin-transform-template-literals"; import transformTypeofSymbol from "@babel/plugin-transform-typeof-symbol"; import transformTypescript from "@babel/plugin-transform-typescript"; +import transformUnicodeEscapes from "@babel/plugin-transform-unicode-escapes"; import transformUnicodeRegex from "@babel/plugin-transform-unicode-regex"; export { @@ -178,6 +179,7 @@ export { transformTemplateLiterals, transformTypeofSymbol, transformTypescript, + transformUnicodeEscapes, transformUnicodeRegex, }; @@ -268,5 +270,6 @@ export const all = { "transform-template-literals": transformTemplateLiterals, "transform-typeof-symbol": transformTypeofSymbol, "transform-typescript": transformTypescript, + "transform-unicode-escapes": transformUnicodeEscapes, "transform-unicode-regex": transformUnicodeRegex, }; diff --git a/packages/babel-standalone/src/preset-es2015.js b/packages/babel-standalone/src/preset-es2015.js index 0b48bb6f673b..0add83d9be72 100644 --- a/packages/babel-standalone/src/preset-es2015.js +++ b/packages/babel-standalone/src/preset-es2015.js @@ -29,6 +29,7 @@ export default (_: any, opts: Object): Object => { [babelPlugins.transformComputedProperties, optsLoose], [babelPlugins.transformForOf, optsLoose], babelPlugins.transformStickyRegex, + babelPlugins.transformUnicodeEscapes, babelPlugins.transformUnicodeRegex, [babelPlugins.transformSpread, optsLoose], [babelPlugins.transformParameters, optsLoose],