From 5f381e7646b5cc06487d1f8156a7c908f0635356 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Tue, 25 Sep 2018 15:21:55 -0400 Subject: [PATCH] Allow stage 3 css transforms (#5091) * Switch to stage 3 css * Tweak default browsers, too --- packages/react-dev-utils/browsersHelper.js | 7 ++++++- packages/react-scripts/config/webpack.config.dev.js | 2 +- packages/react-scripts/config/webpack.config.prod.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/react-dev-utils/browsersHelper.js b/packages/react-dev-utils/browsersHelper.js index 1cbc1ee7185..b32879944ab 100644 --- a/packages/react-dev-utils/browsersHelper.js +++ b/packages/react-dev-utils/browsersHelper.js @@ -13,7 +13,12 @@ const inquirer = require('inquirer'); const pkgUp = require('pkg-up'); const fs = require('fs'); -const defaultBrowsers = ['>0.25%', 'not op_mini all', 'ie 11']; +const defaultBrowsers = [ + '>0.2%', + 'not dead', + 'not ie <= 11', + 'not op_mini all', +]; function shouldSetBrowsers(isInteractive) { if (!isInteractive) { diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 9b1f4182226..13fe5cafc24 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -60,7 +60,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => { autoprefixer: { flexbox: 'no-2009', }, - stage: 4, + stage: 3, }), ], }, diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 9ce5eb80194..af250048d14 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -72,7 +72,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => { autoprefixer: { flexbox: 'no-2009', }, - stage: 4, + stage: 3, }), ], sourceMap: shouldUseSourceMap,