DEV Community

Discussion on: To Typescript Or Not To?

Collapse
 
efpage profile image
Eckehard

One important argument might be protection of the source code. With Javascript you need to publish your source - even if they are minified or obfuscated (IΒ΄m not sure this really helps). And this is an additional step too.

You can surely use code that was transpiled from JS, but I assume itΒ΄s not as useful.

Collapse
 
joelbonetr profile image
JoelBonetR πŸ₯‡

?? when you use a bundler it just minifies and ofuscates your code, the output for the same code will be almost the same in JS than in TS, there's no point here.