ts-node
ts-node copied to clipboard
Export logic for converting `tsconfig` into `swcrc` (or publish it as a separate NPM package)
ts-node is able to convert tsconfig into SWC config:
https://github.com/TypeStrong/ts-node/blob/main/src/transpilers/swc.ts
Perhaps, this functionality could be exported, or extracted into a separate NPM package. It is something that would be useful in more scenarios (webpack/esbuild/vite configs and plugins).
There is a similar project already (https://github.com/Songkeys/tsconfig-to-swcconfig), bit it seems like something that deserves a large and trustworthy maintainer.