mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 23:57:55 -05:00
484487694a
BREAKING CHANGE: this slightly changes our browser compatibility list
22 lines
679 B
Text
22 lines
679 B
Text
// .babelrc is an alias for .babelrc.json and uses JSON5 syntax
|
|
{
|
|
"plugins": [
|
|
"@babel/plugin-transform-async-to-generator",
|
|
"@babel/plugin-transform-object-rest-spread",
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"transform-require-context"
|
|
],
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"bugfixes": true,
|
|
|
|
// 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`
|
|
"modules": "commonjs"
|
|
}
|
|
],
|
|
"@babel/preset-react"
|
|
]
|
|
}
|