Skip to content

Commit 5f381e7

Browse files
authored
Allow stage 3 css transforms (#5091)
* Switch to stage 3 css * Tweak default browsers, too
1 parent fb6e6f7 commit 5f381e7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/react-dev-utils/browsersHelper.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ const inquirer = require('inquirer');
1313
const pkgUp = require('pkg-up');
1414
const fs = require('fs');
1515

16-
const defaultBrowsers = ['>0.25%', 'not op_mini all', 'ie 11'];
16+
const defaultBrowsers = [
17+
'>0.2%',
18+
'not dead',
19+
'not ie <= 11',
20+
'not op_mini all',
21+
];
1722

1823
function shouldSetBrowsers(isInteractive) {
1924
if (!isInteractive) {

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => {
6060
autoprefixer: {
6161
flexbox: 'no-2009',
6262
},
63-
stage: 4,
63+
stage: 3,
6464
}),
6565
],
6666
},

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const getStyleLoaders = (cssOptions, preProcessor) => {
7272
autoprefixer: {
7373
flexbox: 'no-2009',
7474
},
75-
stage: 4,
75+
stage: 3,
7676
}),
7777
],
7878
sourceMap: shouldUseSourceMap,

0 commit comments

Comments
 (0)