scratch-www/.babelrc

23 lines
679 B
Text
Raw Permalink Normal View History

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