Skip to content

Commit

Permalink
[babel 8] Enable preset-env bugfixes by default (#13866)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 24, 2021
1 parent f2b3134 commit e45d86c
Show file tree
Hide file tree
Showing 91 changed files with 143 additions and 142 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ var _Child2 = babelHelpers.interopRequireDefault(require("./Child"));

var _jsxRuntime = require("react/jsx-runtime");

function MyComponent(_ref) {
function MyComponent({
closeFn
}) {
var _Child;

let {
closeFn
} = _ref;
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Parent.default, {
render: () => _Child || (_Child = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Child2.default, {
closeFn: closeFn
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@babel/plugin-transform-typeof-symbol": "workspace:^7.14.5",
"@babel/plugin-transform-unicode-escapes": "workspace:^7.14.5",
"@babel/plugin-transform-unicode-regex": "workspace:^7.14.5",
"@babel/preset-modules": "^0.1.4",
"@babel/preset-modules": "^0.1.5",
"@babel/types": "workspace:^7.15.6",
"babel-plugin-polyfill-corejs2": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/src/normalize-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default function normalizeOptions(opts: Options) {
bugfixes: v.validateBooleanOption(
TopLevelOptions.bugfixes,
opts.bugfixes,
false,
process.env.BABEL_8_BREAKING ? true : false,
),
configPath: v.validateStringOption(
TopLevelOptions.configPath,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import "core-js/modules/es6.array.iterator.js";
import "core-js/modules/web.dom.iterable.js";
var a = new Map();
const a = new Map();
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ Using plugins:
proposal-numeric-separator { android, chrome < 75, edge < 79, firefox < 70, ios < 13, opera < 62, safari < 13, samsung < 11 }
proposal-logical-assignment-operators { android, chrome < 85, edge < 85, firefox < 79, ios < 14, node < 15, opera < 71, safari < 14, samsung < 14 }
proposal-nullish-coalescing-operator { android, chrome < 80, edge < 80, firefox < 72, ios < 13.4, node < 14, opera < 67, safari < 13.1, samsung < 13 }
proposal-optional-chaining { android, chrome < 91, edge, firefox < 74, ios < 13.4, node, opera, safari < 13.1, samsung }
proposal-optional-chaining { android, chrome < 80, edge < 80, firefox < 74, ios < 13.4, node < 14, opera < 67, safari < 13.1, samsung < 13 }
proposal-json-strings { android, chrome < 66, edge < 79, firefox < 62, ios < 12, opera < 53, safari < 12, samsung < 9 }
proposal-optional-catch-binding { android, chrome < 66, edge < 79, ios < 11.3, opera < 53, safari < 11.1, samsung < 9 }
transform-parameters { edge < 18, ios, safari }
proposal-async-generator-functions { android, chrome < 63, edge < 79, ios < 12, opera < 50, safari < 12 }
proposal-object-rest-spread { edge < 79, ios < 11.3, safari < 11.1 }
transform-dotall-regex { android, chrome < 62, edge < 79, firefox < 78, ios < 11.3, opera < 49, safari < 11.1 }
proposal-unicode-property-regex { android, chrome < 64, edge < 79, firefox < 78, ios < 11.3, opera < 51, safari < 11.1, samsung < 9 }
transform-named-capturing-groups-regex { android, chrome < 64, edge < 79, firefox < 78, ios < 11.3, opera < 51, safari < 11.1, samsung < 9 }
transform-async-to-generator { ios < 11, safari < 11 }
transform-template-literals { ios < 13, safari < 13 }
transform-function-name { edge < 79 }
transform-unicode-regex { ios < 12, safari < 12 }
transform-block-scoping { ios < 11, safari < 11 }
proposal-export-namespace-from { android < 72, chrome < 72, edge < 79, firefox < 80, ios, opera < 60, safari, samsung < 11.0 }
bugfix/transform-async-arrows-in-class { ios < 11, safari < 11 }
bugfix/transform-edge-default-parameters { edge < 18 }
bugfix/transform-edge-function-name { edge < 79 }
bugfix/transform-safari-block-shadowing { ios < 11, safari < 11 }
bugfix/transform-safari-for-shadowing { ios < 11, safari < 11 }
bugfix/transform-safari-id-destructuring-collision-in-function-expression { ios, safari }
bugfix/transform-tagged-template-caching { ios < 13, safari < 13 }
syntax-dynamic-import
corejs2: `DEBUG` option

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "core-js/modules/web.dom.iterable.js";

function a(_ref) {
let [b, c] = _ref;
}
function a([b, c]) {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/web.dom-collections.iterator.js";
var a = new Map();
const a = new Map();
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ Using plugins:
proposal-numeric-separator { android, chrome < 75, edge < 79, firefox < 70, ios < 13, opera < 62, safari < 13, samsung < 11 }
proposal-logical-assignment-operators { android, chrome < 85, edge < 85, firefox < 79, ios < 14, node < 15, opera < 71, safari < 14, samsung < 14 }
proposal-nullish-coalescing-operator { android, chrome < 80, edge < 80, firefox < 72, ios < 13.4, node < 14, opera < 67, safari < 13.1, samsung < 13 }
proposal-optional-chaining { android, chrome < 91, edge, firefox < 74, ios < 13.4, node, opera, safari < 13.1, samsung }
proposal-optional-chaining { android, chrome < 80, edge < 80, firefox < 74, ios < 13.4, node < 14, opera < 67, safari < 13.1, samsung < 13 }
proposal-json-strings { android, chrome < 66, edge < 79, firefox < 62, ios < 12, opera < 53, safari < 12, samsung < 9 }
proposal-optional-catch-binding { android, chrome < 66, edge < 79, ios < 11.3, opera < 53, safari < 11.1, samsung < 9 }
transform-parameters { edge < 18, ios, safari }
proposal-async-generator-functions { android, chrome < 63, edge < 79, ios < 12, opera < 50, safari < 12 }
proposal-object-rest-spread { edge < 79, ios < 11.3, safari < 11.1 }
transform-dotall-regex { android, chrome < 62, edge < 79, firefox < 78, ios < 11.3, opera < 49, safari < 11.1 }
proposal-unicode-property-regex { android, chrome < 64, edge < 79, firefox < 78, ios < 11.3, opera < 51, safari < 11.1, samsung < 9 }
transform-named-capturing-groups-regex { android, chrome < 64, edge < 79, firefox < 78, ios < 11.3, opera < 51, safari < 11.1, samsung < 9 }
transform-async-to-generator { ios < 11, safari < 11 }
transform-template-literals { ios < 13, safari < 13 }
transform-function-name { edge < 79 }
transform-unicode-regex { ios < 12, safari < 12 }
transform-block-scoping { ios < 11, safari < 11 }
proposal-export-namespace-from { android < 72, chrome < 72, edge < 79, firefox < 80, ios, opera < 60, safari, samsung < 11.0 }
bugfix/transform-async-arrows-in-class { ios < 11, safari < 11 }
bugfix/transform-edge-default-parameters { edge < 18 }
bugfix/transform-edge-function-name { edge < 79 }
bugfix/transform-safari-block-shadowing { ios < 11, safari < 11 }
bugfix/transform-safari-for-shadowing { ios < 11, safari < 11 }
bugfix/transform-safari-id-destructuring-collision-in-function-expression { ios, safari }
bugfix/transform-tagged-template-caching { ios < 13, safari < 13 }
syntax-dynamic-import
corejs3: `DEBUG` option

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
function a(_ref) {
let [b, c] = _ref;
}
function a([b, c]) {}
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ Using plugins:
syntax-numeric-separator
proposal-logical-assignment-operators { firefox < 79, ios < 14, samsung < 14 }
syntax-nullish-coalescing-operator
proposal-optional-chaining { android, chrome < 91, edge, opera, samsung }
syntax-optional-chaining
syntax-json-strings
syntax-optional-catch-binding
transform-parameters { ios, safari }
syntax-async-generators
syntax-object-rest-spread
proposal-export-namespace-from { firefox < 80, ios, safari }
bugfix/transform-safari-id-destructuring-collision-in-function-expression { ios, safari }
bugfix/transform-v8-spread-parameters-in-optional-chaining { android, chrome < 91, edge, opera, samsung }
transform-modules-commonjs
proposal-dynamic-import

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Using plugins:
proposal-numeric-separator { ie }
proposal-logical-assignment-operators { firefox < 79, ie, ios < 14, samsung < 14 }
proposal-nullish-coalescing-operator { ie }
proposal-optional-chaining { android, chrome < 91, edge, ie, opera, samsung }
proposal-optional-chaining { ie }
proposal-json-strings { ie }
proposal-optional-catch-binding { ie }
transform-parameters { ie, ios, safari }
transform-parameters { ie }
proposal-async-generator-functions { ie }
proposal-object-rest-spread { ie }
transform-dotall-regex { ie }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ Using plugins:
syntax-numeric-separator
proposal-logical-assignment-operators { samsung < 14 }
syntax-nullish-coalescing-operator
proposal-optional-chaining { android, chrome < 91, edge, opera, samsung }
syntax-optional-chaining
syntax-json-strings
syntax-optional-catch-binding
transform-parameters { ios, safari }
syntax-async-generators
syntax-object-rest-spread
proposal-export-namespace-from { ios, safari }
bugfix/transform-safari-id-destructuring-collision-in-function-expression { ios, safari }
bugfix/transform-v8-spread-parameters-in-optional-chaining { android, chrome < 91, edge, opera, samsung }
transform-modules-commonjs
proposal-dynamic-import

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { electron < 6.0 }
proposal-logical-assignment-operators { electron < 10.0 }
proposal-nullish-coalescing-operator { electron < 8.0 }
proposal-optional-chaining { electron < 13.0 }
proposal-optional-chaining { electron < 8.0 }
proposal-json-strings { electron < 3.0 }
proposal-optional-catch-binding { electron < 3.0 }
transform-parameters { electron < 0.37 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
proposal-json-strings { chrome < 66 }
proposal-optional-catch-binding { chrome < 66 }
transform-parameters { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { node < 12.5 }
proposal-logical-assignment-operators { node < 15 }
proposal-nullish-coalescing-operator { node < 14 }
proposal-optional-chaining { node }
proposal-optional-chaining { node < 14 }
proposal-json-strings { node < 10 }
proposal-optional-catch-binding { node < 10 }
proposal-async-generator-functions { node < 10 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ Using plugins:
proposal-numeric-separator { chrome < 75, edge < 79, firefox < 70, ie, ios < 13, safari < 13 }
proposal-logical-assignment-operators { chrome < 85, edge < 85, firefox < 79, ie, ios < 14, safari < 14 }
proposal-nullish-coalescing-operator { chrome < 80, edge < 80, firefox < 72, ie, ios < 13.4, safari < 13.1 }
proposal-optional-chaining { chrome < 91, edge, firefox < 74, ie, ios < 13.4, safari < 13.1 }
proposal-optional-chaining { chrome < 80, edge < 80, firefox < 74, ie, ios < 13.4, safari < 13.1 }
proposal-json-strings { chrome < 66, edge < 79, firefox < 62, ie, ios < 12, safari < 12 }
proposal-optional-catch-binding { chrome < 66, edge < 79, firefox < 58, ie, ios < 11.3, safari < 11.1 }
transform-parameters { edge < 18, firefox < 53, ie, ios, safari }
transform-parameters { edge < 15, firefox < 53, ie, ios < 10, safari < 10 }
proposal-async-generator-functions { chrome < 63, edge < 79, firefox < 57, ie, ios < 12, safari < 12 }
proposal-object-rest-spread { chrome < 60, edge < 79, firefox < 55, ie, ios < 11.3, safari < 11.1 }
transform-dotall-regex { chrome < 62, edge < 79, firefox < 78, ie, ios < 11.3, safari < 11.1 }
proposal-unicode-property-regex { chrome < 64, edge < 79, firefox < 78, ie, ios < 11.3, safari < 11.1 }
transform-named-capturing-groups-regex { chrome < 64, edge < 79, firefox < 78, ie, ios < 11.3, safari < 11.1 }
transform-async-to-generator { chrome < 55, edge < 15, firefox < 52, ie, ios < 11, safari < 11 }
transform-async-to-generator { chrome < 55, edge < 15, firefox < 52, ie, ios < 10.3, safari < 10.1 }
transform-exponentiation-operator { edge < 14, firefox < 52, ie, ios < 10.3, safari < 10.1 }
transform-template-literals { ie, ios < 13, safari < 13 }
transform-template-literals { ie, safari < 9 }
transform-literals { firefox < 53, ie, safari < 9 }
transform-function-name { edge < 79, firefox < 53, ie, ios < 10, safari < 10 }
transform-function-name { edge < 14, firefox < 53, ie, ios < 10, safari < 10 }
transform-arrow-functions { ie, ios < 10, safari < 10 }
transform-block-scoped-functions { ie < 11, ios < 10, safari < 10 }
transform-classes { ie, ios < 10, safari < 10 }
Expand All @@ -46,7 +46,7 @@ Using plugins:
transform-unicode-regex { ie, ios < 12, safari < 12 }
transform-spread { ie, ios < 10, safari < 10 }
transform-destructuring { edge < 15, firefox < 53, ie, ios < 10, safari < 10 }
transform-block-scoping { edge < 14, firefox < 51, ie, ios < 11, safari < 11 }
transform-block-scoping { edge < 14, firefox < 51, ie, ios < 10, safari < 10 }
transform-typeof-symbol { ie, safari < 9 }
transform-new-target { edge < 14, ie, ios < 10, safari < 10 }
transform-regenerator { firefox < 53, ie, ios < 10, safari < 10 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75, electron < 6.0, ie, node < 12.5 }
proposal-logical-assignment-operators { chrome < 85, electron < 10.0, ie, node < 15 }
proposal-nullish-coalescing-operator { chrome < 80, electron < 8.0, ie, node < 14 }
proposal-optional-chaining { chrome < 91, electron < 13.0, ie, node }
proposal-optional-chaining { chrome < 80, electron < 8.0, ie, node < 14 }
proposal-json-strings { chrome < 66, electron < 3.0, ie, node < 10 }
proposal-optional-catch-binding { chrome < 66, electron < 3.0, ie, node < 10 }
transform-parameters { electron < 0.37, ie }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75, ie, node < 12.5 }
proposal-logical-assignment-operators { chrome < 85, ie, node < 15 }
proposal-nullish-coalescing-operator { chrome < 80, ie, node < 14 }
proposal-optional-chaining { chrome < 91, ie, node }
proposal-optional-chaining { chrome < 80, ie, node < 14 }
proposal-json-strings { chrome < 66, ie, node < 10 }
proposal-optional-catch-binding { chrome < 66, ie, node < 10 }
transform-parameters { ie }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75, ie, node < 12.5 }
proposal-logical-assignment-operators { chrome < 85, ie, node < 15 }
proposal-nullish-coalescing-operator { chrome < 80, ie, node < 14 }
proposal-optional-chaining { chrome < 91, ie, node }
proposal-optional-chaining { chrome < 80, ie, node < 14 }
proposal-json-strings { chrome < 66, ie, node < 10 }
proposal-optional-catch-binding { chrome < 66, ie, node < 10 }
transform-parameters { ie }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { electron < 6.0 }
proposal-logical-assignment-operators { electron < 10.0 }
proposal-nullish-coalescing-operator { electron < 8.0 }
proposal-optional-chaining { electron < 13.0 }
proposal-optional-chaining { electron < 8.0 }
proposal-json-strings { electron < 3.0 }
proposal-optional-catch-binding { electron < 3.0 }
transform-parameters { electron < 0.37 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
proposal-json-strings { chrome < 66 }
proposal-optional-catch-binding { chrome < 66 }
transform-parameters { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { node < 12.5 }
proposal-logical-assignment-operators { node < 15 }
proposal-nullish-coalescing-operator { node < 14 }
proposal-optional-chaining { node }
proposal-optional-chaining { node < 14 }
proposal-json-strings { node < 10 }
proposal-optional-catch-binding { node < 10 }
proposal-async-generator-functions { node < 10 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using plugins:
proposal-numeric-separator { chrome < 75 }
proposal-logical-assignment-operators { chrome < 85 }
proposal-nullish-coalescing-operator { chrome < 80 }
proposal-optional-chaining { chrome < 91 }
proposal-optional-chaining { chrome < 80 }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
Expand Down

0 comments on commit e45d86c

Please sign in to comment.