From 0f6337f5dd6f444d36b15706b32e313914aec224 Mon Sep 17 00:00:00 2001 From: Fynn Becker Date: Mon, 18 Mar 2019 13:43:18 +0100 Subject: [PATCH] Use 'defaults' browserslist environment --- lib/commands/build.js | 1 - lib/commands/dev.js | 1 - test/project/.browserslistrc | 18 +++++++++--------- ui/.browserslistrc | 5 +++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/commands/build.js b/lib/commands/build.js index 0ed0d16d..b06c7b31 100644 --- a/lib/commands/build.js +++ b/lib/commands/build.js @@ -25,7 +25,6 @@ module.exports = function (options) { process.env.NODE_ENV = 'production' process.env.PANGOLIN_ENV = options.dev ? 'build:dev' : 'build' process.env.PANGOLIN_BUILD = 'legacy' - process.env.BROWSERSLIST_ENV = 'legacy' const context = process.cwd() store.setup(context) diff --git a/lib/commands/dev.js b/lib/commands/dev.js index 7978938b..a48c01d3 100644 --- a/lib/commands/dev.js +++ b/lib/commands/dev.js @@ -16,7 +16,6 @@ const WebpackDevServer = require('webpack-dev-server') module.exports = async function () { process.env.NODE_ENV = 'development' process.env.PANGOLIN_ENV = 'dev' - process.env.BROWSERSLIST_ENV = 'legacy' const context = process.cwd() store.setup(context) diff --git a/test/project/.browserslistrc b/test/project/.browserslistrc index bbd4cd50..ee7317df 100644 --- a/test/project/.browserslistrc +++ b/test/project/.browserslistrc @@ -1,12 +1,12 @@ # Supported browsers -# https://github.com/ai/browserslist +# https://github.com/browserslist/browserslist -[modern] -Chrome >= 58 -Edge >= 15 -Firefox >= 53 -iOS >= 10.1 - -[legacy] -> 0.25% +> 0.2% +last 2 versions not dead + +[modern] +Chrome >= 58 and > 0.2% +Edge >= 15 and > 0.2% +Firefox >= 53 and > 0.2% +iOS >= 10.1 and > 0.2% diff --git a/ui/.browserslistrc b/ui/.browserslistrc index 3702d29c..93a306d9 100644 --- a/ui/.browserslistrc +++ b/ui/.browserslistrc @@ -1,4 +1,5 @@ # Supported browsers -# https://github.com/ai/browserslist +# https://github.com/browserslist/browserslist -> 0.25% +> 0.2% +not dead