clarkmcc / go-typescript

Compile and run Typescript code natively in Go
GNU General Public License v3.0
104 stars 11 forks source link

Question about typescript versions 😄 #1

Closed sourcec0de closed 3 years ago

sourcec0de commented 3 years ago

First of all, this is REALLY helpful!!! Thank you for taking the time to build this awesome library!

My question is around how you acquired the typescript files in the versions directory. I was following a thread on goja and it seems like these files are a minified version of typescripServices.js. Did you do anything special to compress/minify them so they work with goja? I couldn't get it to work out of the box.

Again, thank you for the hard work! 🚀

clarkmcc commented 3 years ago

No problem! I didn't do anything special actually, I just minified them using https://jscompress.com/. If that doesn't work for you, send an example of how you're loading the version into goja and I can take a look.