mirror of
https://github.com/keyboardio/Chrysalis.git
synced 2026-02-28 19:07:17 +01:00
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>
42 lines
759 B
Plaintext
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": "/"
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|