Is there a way to get source maps with ts.transform (TypeScript Compiler API)?
Asked Answered
G

0

8

The TypeScript Compiler API has multiple ways of transforming files:

  • create a transpiler host and implement getCustomTransformers. This has source map support
  • use ts.transform. This does not seem to have source map support.

For various reasons, ts.transform() is a lot easier to use in this particular situation.

How can I get source maps when using ts.transform()?

Guenzi answered 24/2, 2020 at 17:2 Comment(2)
Have you found the solution ?Occupy
still cant find an answer :(Antimagnetic

© 2022 - 2024 — McMap. All rights reserved.