timocov / ts-transformer-minify-privates

A TypeScript custom transformer which renames private class members
MIT License
52 stars 5 forks source link

Usage with babel-loader? #20

Closed yvele closed 1 year ago

yvele commented 2 years ago

I'm using babel-preset-typescript (with babel-plugin-transform-typescript).

Is it possible to use your transformer with or without an extra ts-loader step?

Any babel usage sample?

Thank you for your great lib btw.

yvele commented 2 years ago

Or is it possible to easily get a ts.Program instance using native typescript ?

timocov commented 2 years ago

Hi @yvele,

I haven't worked with babel ts plugin, but from what I've seen is that they don't use compilation internally but transpilation only. This tool cannot work if there is no compilation and the type check was happened.