New PHP transpiler version #13627
Unanswered
maduranma
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some time ago, there was a PHP transpiler that used the v8js extension.
It stopped being maintained and so it was removed from Babel's website.
For the company I work, we use an environment for development in which we run the JS natively in the browser and then in production JS and CSS is automatically minified when there are changes in the code.
For the new booking engine we use Babel as we need to be compatible with old browsers that don't support new JS standards, so I've developed a little PHP lib that we use in addition to the minifier to transpile JS through Babel.
I guess it can be useful for somebody around here, so I wanted to share it: https://github.com/nvan/php-babel-transpiler
I wanted it simple and not requiring any PHP extension.
Maybe you could even include it in the page again.
Beta Was this translation helpful? Give feedback.
All reactions