Skip to content
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

feat(CLI): Added possibility to have custom config location for swc #870

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

desout
Copy link

@desout desout commented Nov 13, 2024

We encountered an issue that requires us to specify a custom SWC configuration file when using the swc-node/register package. Our project does not use TypeScript, and we wish to avoid placing irrelevant files like tsconfig.json in our root directory. Additionally, we are integrating Jest with @swc/jest, which leads to conflicts with the root .swcrc file.

To resolve this, we need the ability to specify a custom path for the .swcrc file and prevent the root .swcrc from being used during real-time node building. The SWC API allows for this through theconfigFile property, which can be implemented similarly to setting SWCRC=true.

Our migration process is currently hindered by this limitation, and we've had to temporarily override your package locally.

@CLAassistant
Copy link

CLAassistant commented Nov 13, 2024

CLA assistant check
All committers have signed the CLA.

@desout desout changed the title Added possibility to have custom config location for swc feat(CLI): Added possibility to have custom config location for swc Dec 3, 2024
@desout
Copy link
Author

desout commented Dec 3, 2024

@Brooooooklyn Could you take a look at this little feat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants