Skip to content

Commit 4418231

Browse files
authored
Merge pull request scratchfoundation#4983 from rschamp/fix-browserslist-warning
Move browsers options to .browserslistrc
2 parents 8eee001 + 413df6e commit 4418231

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
last 3 versions
2+
Safari >= 8
3+
iOS >= 8

webpack.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ const base = {
5555
['react-intl', {
5656
messagesDir: './translations/messages/'
5757
}]],
58-
presets: [
59-
['@babel/preset-env', {targets: {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}}],
60-
'@babel/preset-react'
61-
]
58+
presets: ['@babel/preset-env', '@babel/preset-react']
6259
}
6360
},
6461
{
@@ -81,9 +78,7 @@ const base = {
8178
return [
8279
postcssImport,
8380
postcssVars,
84-
autoprefixer({
85-
browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']
86-
})
81+
autoprefixer
8782
];
8883
}
8984
}

0 commit comments

Comments
 (0)