Skip to content

Commit

Permalink
Add bugfix/transform-safari-for-shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 1, 2020
1 parent b4ea835 commit 34fba37
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-compat-data/data/overlapping-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"transform-function-name": [
"bugfix/transform-edge-function-name"
],
"transform-block-scoping": [
"bugfix/transform-safari-for-shadowing"
],
"transform-template-literals": [
"bugfix/transform-tagged-template-caching"
]
Expand Down
23 changes: 23 additions & 0 deletions packages/babel-compat-data/data/plugin-bugfixes.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,29 @@
"opera": "38",
"electron": "1.2"
},
"transform-block-scoping": {
"chrome": "49",
"edge": "14",
"firefox": "51",
"safari": "11",
"node": "6",
"ios": "11",
"samsung": "5",
"opera": "36",
"electron": "1"
},
"bugfix/transform-safari-for-shadowing": {
"chrome": "49",
"edge": "12",
"firefox": "4",
"safari": "11",
"node": "6",
"ie": "11",
"ios": "11",
"samsung": "5",
"opera": "36",
"electron": "1"
},
"transform-template-literals": {
"chrome": "41",
"edge": "13",
Expand Down
7 changes: 7 additions & 0 deletions packages/babel-compat-data/scripts/data/plugin-bugfixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ module.exports = {
features: ['function "name" property / variables (function)'],
replaces: "transform-function-name",
},
"bugfix/transform-safari-for-shadowing": {
features: [
"let / for-in loop binding shadowing parameter",
"let / for-in loop binding shadowing parameter (strict mode)",
],
replaces: "transform-block-scoping",
},
"bugfix/transform-tagged-template-caching": {
features: ["template literals / TemplateStrings permanent caching"],
replaces: "transform-template-literals",
Expand Down
2 changes: 2 additions & 0 deletions packages/babel-preset-env/src/available-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ import bugfixAsyncArrowsInClass from "@babel/preset-modules/lib/plugins/transfor
import bugfixEdgeDefaultParameters from "@babel/preset-modules/lib/plugins/transform-edge-default-parameters";
import bugfixEdgeFunctionName from "@babel/preset-modules/lib/plugins/transform-edge-function-name";
import bugfixTaggedTemplateCaching from "@babel/preset-modules/lib/plugins/transform-tagged-template-caching";
import bugfixSafariForShadowing from "@babel/preset-modules/lib/plugins/transform-safari-for-shadowing";

export default {
"bugfix/transform-async-arrows-in-class": bugfixAsyncArrowsInClass,
"bugfix/transform-edge-default-parameters": bugfixEdgeDefaultParameters,
"bugfix/transform-edge-function-name": bugfixEdgeFunctionName,
"bugfix/transform-safari-for-shadowing": bugfixSafariForShadowing,
"bugfix/transform-tagged-template-caching": bugfixTaggedTemplateCaching,
"proposal-async-generator-functions": proposalAsyncGeneratorFunctions,
"proposal-dynamic-import": proposalDynamicImport,
Expand Down

0 comments on commit 34fba37

Please sign in to comment.