ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

Export logic for converting `tsconfig` into `swcrc` (or publish it as a separate NPM package)

Open GreenTea124 opened this issue 2 years ago • 0 comments

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.

GreenTea124 avatar Mar 31 '23 14:03 GreenTea124