ts-runtime-checks icon indicating copy to clipboard operation
ts-runtime-checks copied to clipboard

transform the code with babel or with a string

Open acemtp opened this issue 1 year ago • 2 comments

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?

acemtp avatar Jul 24 '24 17:07 acemtp

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.

GoogleFeud avatar Jul 25 '24 18:07 GoogleFeud

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

acemtp avatar Jul 25 '24 22:07 acemtp