You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code in CI (on Windows) and that code includes a class with 4 or more methods, then the process exits with status code 1.
However, the same CI shows code running fine on Linux. Also, if I reduce the number of methods inside src/user.ts file to 3 (instead of 4), then the CI check passes on Windows too.
To be honest, I have no idea why this is happening and downgrading to 1.10.7 works fine in all the cases.
Describe the bug
I am using SWC to create a TypeScript loader for Node.js ESM imports. I have narrowed down the problem to bare-minimum in this repo. https://github.com/thetutlage/windows-nodejs-tests
When I run the code in CI (on Windows) and that code includes a class with 4 or more methods, then the process exits with status code 1.
However, the same CI shows code running fine on Linux. Also, if I reduce the number of methods inside
src/user.ts
file to 3 (instead of 4), then the CI check passes on Windows too.To be honest, I have no idea why this is happening and downgrading to
1.10.7
works fine in all the cases.Input code
Config
Link to the code that reproduces this issue
https://github.com/thetutlage/windows-nodejs-tests
SWC Info output
No response
Expected behavior
Everything should work fine regardless of the platform
Actual behavior
Breaks on Windows
Version
1.11.24
Additional context
Here is the CI run for Windows. https://github.com/thetutlage/windows-nodejs-tests/actions/runs/14993280948/job/42121468875
The text was updated successfully, but these errors were encountered: