Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update preset-env mappings #10742

Merged
merged 1 commit into from Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 25 additions & 1 deletion packages/babel-preset-env/data/corejs2-built-in-features.js
Expand Up @@ -95,7 +95,31 @@ const es = {
],
},

"es6.map": "Map",
// This is explicit to prevent Map-related proposals (like
// Map.prototype.upsert) from being included
"es6.map": {
features: [
"Map / basic functionality",
"Map / constructor arguments",
"Map / constructor requires new",
"Map / constructor accepts null",
"Map / constructor invokes set",
"Map / iterator closing",
"Map / Map.prototype.add returns this",
"Map / -0 key converts to +0",
"Map / Map.prototype.size",
"Map / Map.prototype.delete",
"Map / Map.prototype.clear",
"Map / Map.prototype.forEach",
"Map / Map.prototype.keys",
"Map / Map.prototype.values",
"Map / Map.prototype.entries",
"Map / Map.prototype[Symbol.iterator]",
"Map / Map.prototype isn't an instance",
"Map / Map iterator prototype chain",
"Map / Map[Symbol.species]",
],
},

"es6.math.acosh": "Math methods / Math.acosh",
"es6.math.asinh": "Math methods / Math.asinh",
Expand Down
3 changes: 3 additions & 0 deletions packages/babel-preset-env/data/corejs2-built-ins.json
Expand Up @@ -77,6 +77,7 @@
"safari": "12",
"node": "11",
"ios": "12",
"samsung": "10.2",
"opera": "56",
"electron": "4"
},
Expand Down Expand Up @@ -1496,6 +1497,7 @@
"safari": "12",
"node": "10",
"ios": "12",
"samsung": "9.2",
"opera": "53",
"electron": "3.1"
},
Expand All @@ -1505,6 +1507,7 @@
"safari": "12",
"node": "10",
"ios": "12",
"samsung": "9.2",
"opera": "53",
"electron": "3.1"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/babel-preset-env/data/plugins.json
Expand Up @@ -3,7 +3,9 @@
"chrome": "41",
"edge": "13",
"firefox": "34",
"safari": "13",
"node": "4",
"ios": "13",
"samsung": "3.4",
"opera": "28",
"electron": "0.24"
Expand Down Expand Up @@ -273,6 +275,7 @@
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9.2",
"opera": "51",
"electron": "3.1"
},
Expand All @@ -282,6 +285,7 @@
"safari": "12",
"node": "10",
"ios": "12",
"samsung": "9.2",
"opera": "53",
"electron": "3.1"
},
Expand All @@ -291,6 +295,7 @@
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9.2",
"opera": "53",
"electron": "3.1"
},
Expand All @@ -299,6 +304,7 @@
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9.2",
"opera": "51",
"electron": "3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/package.json
Expand Up @@ -76,7 +76,7 @@
"@babel/helper-plugin-test-runner": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"caniuse-db": "1.0.30000969",
"compat-table": "kangax/compat-table#071b478a44694cbf72a78db8ab39189c5ae31b2c",
"compat-table": "kangax/compat-table#4195aca631ad904cb0efeb62a9c2d8c8511706f8",
"electron-to-chromium": "1.3.113"
}
}