aspect-build / rules_swc

Bazel rules for the swc toolchain https://swc.rs/
https://docs.aspect.build/rules/aspect_rules_swc
Apache License 2.0
41 stars 21 forks source link

add typeonly example with crashing swcrc #208

Open jbedard opened 9 months ago

jbedard commented 9 months ago

Crashes today, see https://github.com/swc-project/swc/issues/7822

CLAassistant commented 9 months ago

CLA assistant check
All committers have signed the CLA.

Zemnmez commented 5 months ago

Did you find a way to resolve this issue? I still have it :(

jbedard commented 3 months ago

@Zemnmez sorry I never saw your message until checking in on this issue just now.

it looks like it was fixed in https://github.com/swc-project/swc/commit/4630426d6aa77af992787456e476b8862c25a45e, although not released yet.

To workaround it you can just add a comment so the compiled .js file is not empty. I normally just do:

// Comment to workaround https://github.com/swc-project/swc/issues/7822