swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.68k stars 67 forks source link

Inline source maps broken w/ newer Typescript #790

Closed jasperlin451 closed 17 hours ago

jasperlin451 commented 1 week ago

I'm using typescript 5.5 breaks when trying to inline source maps because typescript returns w/ Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.ts.

https://github.com/swc-project/swc-node/blob/37b4a40c80f1c61c54830c79619a4282d46224c8/packages/register/read-default-tsconfig.ts#L121

I think this typescript behavior change in ~v5.

jasperlin451 commented 1 week ago

Looks like there's already a PR for this: https://github.com/swc-project/swc-node/pull/726