Skip to content

Commit

Permalink
Allow stage 3 css transforms (#5091)
Browse files Browse the repository at this point in the history
* Switch to stage 3 css

* Tweak default browsers, too
  • Loading branch information
Timer committed Sep 25, 2018
1 parent fb6e6f7 commit 5f381e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/react-dev-utils/browsersHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => {
autoprefixer: {
flexbox: 'no-2009',
},
stage: 4,
stage: 3,
}),
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => {
autoprefixer: {
flexbox: 'no-2009',
},
stage: 4,
stage: 3,
}),
],
sourceMap: shouldUseSourceMap,
Expand Down

0 comments on commit 5f381e7

Please sign in to comment.