Skip to content

Commit

Permalink
Update preset-env mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Nov 20, 2019
1 parent 01d6d6d commit 0721da5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/babel-preset-env/data/built-in-modules.json
Expand Up @@ -6,7 +6,7 @@
"safari": "10.1",
"opera": "48",
"ios_saf": "10.3",
"and_chr": "71",
"and_ff": "64"
"and_chr": "74",
"and_ff": "66"
}
}
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"
}
}

0 comments on commit 0721da5

Please sign in to comment.