This PR adds the ability to load the .swcrc file when running the following command:
SWCRC=true node -r @swc-node/register index.ts
.swcrc file is needed in some scenarios, and there was no option to load it. For example, when you need to use a plugin, you need to use the following .swcrc file:
I have chosen an environment variable because it was the simplest solution with minimal impact. I did not want to cause breaking change, so it is opt-in rather than opt-out. This way, it can be a minor version bump.
This PR adds the ability to load the .swcrc file when running the following command:
.swcrc file is needed in some scenarios, and there was no option to load it. For example, when you need to use a plugin, you need to use the following .swcrc file:
I have chosen an environment variable because it was the simplest solution with minimal impact. I did not want to cause breaking change, so it is opt-in rather than opt-out. This way, it can be a minor version bump.