GoogleFeud / ts-runtime-checks

A typescript transformer that automatically generates validation code from your types.
https://googlefeud.github.io/ts-runtime-checks/
MIT License
296 stars 6 forks source link

transform the code with babel or with a string #62

Open acemtp opened 1 month ago

acemtp commented 1 month ago

we use babel and cannot use ts-loader patch etc...

we have a plugin that take a ts containing the string, want to pass it to your package and then send the new string back to babel.

how we could do that?

GoogleFeud commented 1 month ago

Hi! I think the easiest way to do it would be to setup typescript + ts-patch to transpile your code to javascript in a specific folder, and then let babel take it from there using the already transpiled javascript.

acemtp commented 1 month ago

The thing is that we don't control the build. It's meteor that use Babel.