Files
chrysalis-mirror/.babelrc
Gergely Nagy b7495c44c0 Make our use of @api, @renderer and @main includes more consistent
Whenever we cross a major border, use them. If we're including from within a
logical unit, things that will be moved together, then use relative imports.

Additionally, introduce the `@root` alias, so we can simplify the `package.json`
imports too.

Fixes #800.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-05-20 14:29:38 +02:00

42 lines
759 B
Plaintext

{
"presets": [
[
"@babel/preset-env",
{
"debug": false,
"targets": {
"node": "current",
"electron": "current"
}
}
],
[
"@babel/preset-react",
{
"debug": false,
"targets": {
"node": "current",
"electron": "current"
}
}
]
],
"plugins": [
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-syntax-dynamic-import",
[
"module-resolver",
{
"root": ["/src"],
"alias": {
"@api": "/src/api",
"@renderer": "/src/renderer",
"@main": "/src/main",
"@root": "/"
}
}
]
]
}