Skip to content

Commit

Permalink
feat: add opera and and_ff mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
chikara-chan committed Nov 8, 2018
1 parent cd81b07 commit 408ad07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-preset-env/src/targets-parser.js
Expand Up @@ -33,8 +33,10 @@ const browserNameMap = {
android: "android",
chrome: "chrome",
and_chr: "chrome",
opera: "opera",
edge: "edge",
firefox: "firefox",
and_ff: "firefox",
ie: "ie",
ios_saf: "ios",
safari: "safari",
Expand Down
4 changes: 4 additions & 0 deletions packages/babel-preset-env/test/targets-parser.spec.js
Expand Up @@ -178,6 +178,7 @@ describe("getTargets", () => {
chrome: "61.0.0",
safari: "10.1.0",
firefox: "60.0.0",
opera: "48.0.0",
ios: "10.3.0",
edge: "16.0.0",
});
Expand All @@ -193,6 +194,7 @@ describe("getTargets", () => {
chrome: "61.0.0",
safari: "10.1.0",
firefox: "60.0.0",
opera: "48.0.0",
ios: "10.3.0",
edge: "16.0.0",
});
Expand All @@ -208,6 +210,7 @@ describe("getTargets", () => {
chrome: "61.0.0",
safari: "10.1.0",
firefox: "60.0.0",
opera: "48.0.0",
ios: "10.3.0",
ie: "11.0.0",
edge: "16.0.0",
Expand All @@ -224,6 +227,7 @@ describe("getTargets", () => {
).toEqual({
chrome: "61.0.0",
safari: "10.1.0",
opera: "48.0.0",
ios: "10.3.0",
ie: "11.0.0",
edge: "16.0.0",
Expand Down

0 comments on commit 408ad07

Please sign in to comment.