Add numeric separator to shippedProposals (#10971)

* add plugins

* add plugin description

* run build-data

* set shipped proposals true

* update test fixtures

* corejs.proposals should not imply shipped proposals

* fix eslint errors
Please enter the commit message for your changes. Lines starting

* create new object in packages/babel-compat-data/scripts/data/plugin-features.js
This commit is contained in:
Ye Wei
2020-03-17 06:09:33 +08:00
committed by GitHub
parent 5c1a8210da
commit e06bf8ffdb
31 changed files with 53 additions and 7 deletions

View File

@@ -328,6 +328,14 @@
"opera": "37",
"electron": "1.1"
},
"proposal-numeric-separator": {
"chrome": "75",
"firefox": "70",
"safari": "13",
"node": "12.5",
"ios": "13",
"opera": "62"
},
"transform-member-expression-literals": {
"chrome": "7",
"opera": "12",

View File

@@ -116,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,