Closed supercairos closed 1 month ago
Some more info:
Version 1.2.2 works with SWC SWC_VERSION = "v1.3.75" [1.1.0 LATEST]
but doesn't with LATEST_SWC_VERSION (v1.3.78)
Error lies between version SWC v1.3.75
and v1.3.76
Probably due to this fix: https://github.com/swc-project/swc/pull/7775
Ok, I've found the solution:
With new versions of SWC, if you specify path rewrite, you need to specify a baseUrl
.
For exemple if you have this in you .swcrc:
"jsc": {
...
"paths": {
"i18next": [
"./node_modules/i18next"
]
},
...
}
You have to specify:
"jsc": {
...
"baseUrl": "."
...
}
Thanks for following up and recording your findings 👍
What happened?
While running the latest version of SWC rules, it crashes with this error:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
: bazel 7.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: rules_swc-1.2.2 rules_ts-2.2.0 rules_js-1.40.0Language(s) and/or frameworks involved: TS
How to reproduce
No response
Any other information?
While upgrading from
rules_swc-1.1.0
torules_swc-1.2.2