From 00171293bdce4ee5808c6ecfae2e8da114ad2aa7 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Thu, 1 Jun 2017 08:38:55 -0500 Subject: [PATCH] Ensure explicit targets always override browsers key targets --- src/targets-parser.js | 12 +----------- test/targets-parser.spec.js | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/targets-parser.js b/src/targets-parser.js index 3a1096a1..2d1eea2c 100644 --- a/src/targets-parser.js +++ b/src/targets-parser.js @@ -103,17 +103,7 @@ const getTargets = (targets = {}) => { const [parsedTarget, parsedValue] = parser(target, value); if (parsedValue) { - // Merge (lowest wins) - if (typeof parsedValue === "string") { - results.targets[parsedTarget] = semverMin( - results.targets[parsedTarget], - parsedValue, - ); - } else { - // We can remove this block if/when we replace Uglify target - // with top level option - results.targets[parsedTarget] = parsedValue; - } + results.targets[parsedTarget] = parsedValue; } } diff --git a/test/targets-parser.spec.js b/test/targets-parser.spec.js index ff569174..891602ce 100644 --- a/test/targets-parser.spec.js +++ b/test/targets-parser.spec.js @@ -32,7 +32,7 @@ describe("getTargets", () => { }), { chrome: "49.0.0", - firefox: "51.0.0", + firefox: "55.0.0", ie: "9.0.0", safari: "9.0.0", },