scratch-www/.babelrc
Christopher Willis-Ford eb56880131 chore(deps): upgrade to @babel@^7 for webpack 5 compatibility
BREAKING CHANGE: this slightly changes our browser compatibility list
2024-01-22 11:57:07 -08:00

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