mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
eb56880131
BREAKING CHANGE: this slightly changes our browser compatibility list
20 lines
644 B
Text
20 lines
644 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",
|
|
{
|
|
// 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"
|
|
]
|
|
}
|