scratch-www/.babelrc
Christopher Willis-Ford 484487694a build: tweak Babel settings to match Scratch support FAQ
BREAKING CHANGE: this slightly changes our browser compatibility list
2024-01-22 11:57:55 -08:00

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"
]
}