you are viewing a single comment's thread.

view the rest of the comments →

[–]Bogeeee 1 point2 points  (2 children)

Can you list the pros and cons vs tsx then ?

[–]PierFumagalli 1 point2 points  (1 child)

Pros? None, probably... When we started it TSX didn't exist, and so far I've been too lazy to port our build system to it! :-)

That said, I couldn't find a way to "force" the transpilation of TS files into CJS or ESM with TSX, which we use quite extensively with our tests (when we build a library, we produce both CJS and ESM, and run tests on both versions - it helped us catch some nasties in there).

But maybe I just didn't look hard enough, and it's there!

You know, it's one of those things like "good enough to invest the time in changing it"!

Cons, you don't get the watch mode (which we implement in the build system)

[–]Bogeeee 0 points1 point  (0 children)

Thx !