A
A
Alexey2018-05-01 10:22:37
typescript
Alexey, 2018-05-01 10:22:37

Typescript + Google Closure Compiler is it possible and why?

There is a large project written in ES3 + Google Closure Compiler.
The code that is written there "doesn't like me very much", was written for 6 years, more than 10 developers, in general, they made "Hell". I plan to rewrite everything in TypeScript.
Actually the question is, Google Closure Compiler is developed by Google to compress and obfuscate native Javascript. Do I need to use it in conjunction with TypeScript, or is it simply not worth it, but use pure TypeScript with Webpack (I prefer Parcel), maybe there are libraries better than GCC that allow you to compress and obfuscate the code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2018-05-01
@azovl

At the moment, uglify (included in webpack and probably in parcel) is about on par with gcc. Plus, webpack has lazy loading, which, subjectively for the user, speeds up the loading of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question