how to only strip types using swc cli or rust library [closed]

2 weeks ago 12
ARTICLE AD BOX

Playground has an option to strip types only, which removes the types but line and column numbers of everything else remain same.

How can I replicate this behaviour with swc cli or from rust code using swc as library.

Using json file copied from playground doesn't work.

cafce25's user avatar

cafce25

29.9k5 gold badges49 silver badges68 bronze badges

navneet's user avatar

1

Read Entire Article