JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.1k stars 59 forks source link

Super Code Optimisation #83

Closed sirinath closed 4 years ago

sirinath commented 4 years ago

Is it possible to have code optimisations like in Prepack and Closure Compiler.

In the case of DOM manipulations and JS generated CSS without continuous animations and update, generate the final rendering.

JSMonk commented 4 years ago

Sorry, but it's not a goal of the Hegel project. At this moment, we try to implement a strong type system with high-level type inference. As you can see, Hegel doesn't contain a build step, it's an only analyzation tool and build-step we delegate to babel or to flow-remove-types utility (https://jsmonk.github.io/hegel/docs/install#setup-project). Thank you for your question ^_^.