nolanlawson / optimize-js

Optimize a JS file for faster parsing (UNMAINTAINED)

Home Page:https://nolanlawson.github.io/optimize-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a browser side version?

Josema opened this issue · comments

I would like to use optimize-js on the browser. Is that possible?

Sure, you can try browserifying it, but note that it will probably be quite heavy and therefore remove any benefit of the optimized code.

I tried browserifying and just added a window.optimizeJs = optimizeJs; to export the function. But the ouput is always the same as the input.
https://plnkr.co/edit/bQH6WME3nSV8DjDiEynr?p=preview