mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-24 08:08:18 -05:00
build: tweak Babel settings to match Scratch support FAQ
BREAKING CHANGE: this slightly changes our browser compatibility list
This commit is contained in:
parent
cab158ae01
commit
484487694a
3 changed files with 9 additions and 4 deletions
2
.babelrc
2
.babelrc
|
@ -10,6 +10,8 @@
|
||||||
[
|
[
|
||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
{
|
{
|
||||||
|
"bugfixes": true,
|
||||||
|
|
||||||
// This papers over the fact that our current code is inconsistent
|
// This papers over the fact that our current code is inconsistent
|
||||||
// For example, we sometimes use `import` with a file that exports with `module.exports`
|
// For example, we sometimes use `import` with a file that exports with `module.exports`
|
||||||
"modules": "commonjs"
|
"modules": "commonjs"
|
||||||
|
|
|
@ -177,8 +177,11 @@
|
||||||
"all": true
|
"all": true
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 3 versions",
|
"Chrome >= 63",
|
||||||
"Safari >= 8",
|
"Firefox >= 57",
|
||||||
"iOS >= 8"
|
"Edge >= 15",
|
||||||
|
"Safari >= 11",
|
||||||
|
"ChromeAndroid >= 63",
|
||||||
|
"ios_saf >= 11"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ module.exports = {
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.jsx?$/,
|
test: /\.(?:js|mjs|cjs)x?$/,
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
include: [
|
include: [
|
||||||
path.resolve(__dirname, 'src'),
|
path.resolve(__dirname, 'src'),
|
||||||
|
|
Loading…
Reference in a new issue