-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full file path not being fed to SWC CLI #11
Comments
What's in your .swcrc? |
SWCRC:
|
Oh interesting, removing the swcrc attribute makes it compile with the correct input file: Config:
Subcommand run:
Not fully sure what part of the swcrc is contributing to this yet |
I tried moving my
So, because the (The error comes from |
This is probably happening because of the "relativizing" of paths: |
Yeah I agree, swc behavior changes based on the config file path. I'm not sure if that's actually desirable or if it ought to change upstream. |
Hm, so the path relativizing in this repo's rule is not the cause? In my initial custom swc rule I believe it worked without modifying paths in the rule implementation:
|
maybe something changed upstream since that code was written? The newly added example shows it working without that. Fixes #11
maybe something changed upstream since that code was written? The newly added example shows it working without that. Fixes #11
@gregmagolan added that comment
But yeah, it seems broken to me as-is. |
Odd, I had trouble with it initially with the full path when passing an swcrc file and had to make it relative to work. Something change upstream? |
maybe something changed upstream since that code was written? The newly added example shows it working without that. Fixes #11
I have a file
packages/xpackage/server/src/tests/y-test.ts
, which I am trying to compile with theswc_rule
.Problem
The compiled output file is empty.
Configuration
Possible Cause
Current subcommand being run by
swc_rule
:Because the input file is being given as
server/src/tests/y-test.ts
instead ofpackages/xpackage/server/src/tests/y-test.ts
(thepackages/xpackage
stripped away), maybe the file is not being recognized/input to swc in the first place, and so it outputs a blank file?(There is also no error thrown for this, and only by opening the compiled file can you see that it is blank, though this may be an issue with swc?)
The text was updated successfully, but these errors were encountered: