i-like-robots / hyperons

🔥 The fastest JSX to string renderer on the server and in the browser.
https://www.npmjs.com/package/hyperons
MIT License
45 stars 4 forks source link

ES5 compatibility #6

Closed i-like-robots closed 6 years ago

i-like-robots commented 6 years ago

This refactors the implementation of SafeString so that we don't extend any built-in objects. The class/inheritence shim output from Babel or Bublé is not able to extend built-ins.

I've also added a pretranspiled ES5 bundle and switched the in-browser tests to use this.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+1.4%) to 97.778% when pulling dfef2366f4b2275c75baf7cf6715b5ac35db0317 on es5-compat into bf6c8a3d1b5c3111069b7a8fc14e28cb1cb86a9d on master.