Skip to content

Commit

Permalink
create new object in packages/babel-compat-data/scripts/data/plugin-f…
Browse files Browse the repository at this point in the history
…eatures.js
  • Loading branch information
Wetinee authored and nicolo-ribaudo committed Mar 3, 2020
1 parent b89fd1b commit 810dfa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/babel-compat-data/scripts/data/plugin-features.js
Expand Up @@ -99,7 +99,6 @@ const es2017 = {

const es2018 = {
"proposal-async-generator-functions": "Asynchronous Iterators",
"proposal-numeric-separator": "numeric separator",
"proposal-object-rest-spread": "object rest/spread properties",

"transform-dotall-regex": "s (dotAll) flag for regular expressions",
Expand All @@ -117,9 +116,14 @@ const es2020 = {
"proposal-optional-chaining": "optional chaining operator (?.)",
};

const shippedProposal = {
"proposal-numeric-separator": "numeric separator",
};

// Run plugins for modern features first
module.exports = Object.assign(
{},
shippedProposal,
es2020,
es2019,
es2018,
Expand Down

0 comments on commit 810dfa5

Please sign in to comment.