Skip to content

Commit

Permalink
Fix plugin ordering in preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 16, 2020
1 parent e37706e commit 13bb8aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
22 changes: 11 additions & 11 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -91,17 +91,6 @@
"opera": "28",
"electron": "0.24"
},
"transform-block-scoping": {
"chrome": "49",
"edge": "14",
"firefox": "51",
"safari": "11",
"node": "6",
"ios": "11",
"samsung": "5",
"opera": "36",
"electron": "1"
},
"transform-classes": {
"chrome": "46",
"edge": "13",
Expand Down Expand Up @@ -358,5 +347,16 @@
"samsung": "5",
"opera": "37",
"electron": "1.1"
},
"transform-block-scoping": {
"chrome": "49",
"edge": "14",
"firefox": "51",
"safari": "11",
"node": "6",
"ios": "11",
"samsung": "5",
"opera": "36",
"electron": "1"
}
}
9 changes: 6 additions & 3 deletions packages/babel-compat-data/scripts/data/plugin-features.js
Expand Up @@ -20,9 +20,6 @@ module.exports = {
"transform-block-scoped-functions": {
features: ["block-level function declaration"],
},
"transform-block-scoping": {
features: ["const", "let"],
},
"transform-classes": {
features: ["class", "super"],
},
Expand Down Expand Up @@ -102,4 +99,10 @@ module.exports = {
'RegExp "y" and "u" flags / "u" flag',
],
},

// This must run after all the plugins that manipulate bindings
// eslint-disable-next-line sort-keys
"transform-block-scoping": {
features: ["const", "let"],
},
};

0 comments on commit 13bb8aa

Please sign in to comment.