2024-01-17 19:03:16 -05:00
|
|
|
// .babelrc is an alias for .babelrc.json and uses JSON5 syntax
|
2018-01-30 11:53:12 -05:00
|
|
|
{
|
2018-03-08 15:57:19 -05:00
|
|
|
"plugins": [
|
2024-01-17 19:03:16 -05:00
|
|
|
"@babel/plugin-transform-async-to-generator",
|
|
|
|
"@babel/plugin-transform-object-rest-spread",
|
|
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
|
|
"transform-require-context"
|
2018-03-08 15:57:19 -05:00
|
|
|
],
|
2024-01-17 19:03:16 -05:00
|
|
|
"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"
|
|
|
|
]
|
2018-01-30 11:53:12 -05:00
|
|
|
}
|