1:1 line number mapping

Is there a way to have line numbers in typescript be the same line numbers as javascript? For example, if there's a statement on line 17 in the TS source, SWC would put it on line 17 in the generated JS I'm using the Rust API
1 Reply
kdy1
kdy14w ago
See https://rustdoc.swc.rs/swc_fast_ts_strip/fn.operate.html and related examples in the main repository
operate in swc_fast_ts_strip - Rust
API documentation for the Rust operate fn in crate swc_fast_ts_strip.

Did you find this page helpful?