scratch-www/.babelrc

21 lines
644 B
Text
Raw 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",
{
// 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"
]
}