jarslab / babel-maven-plugin

Babel transcription plugin for Maven
MIT License
25 stars 8 forks source link

Plugin fails with babel 7.8.3 #13

Closed ktor closed 4 years ago

ktor commented 4 years ago

Plugin v1.3 fails with message

Failed on Babel transpile execution. Failed on Babel transpile execution.: java.lang.RuntimeException: javax.script.ScriptException: ReferenceError: "Symbol" is not defined in at line number 6189

I suppose that Babael 7.8.3 does not include Symbol polyfill which is needed to be addressed during build process.

What versions of babel do you currently support ?

ktor commented 4 years ago

Ok, I've found it. Plugin only works with https://registry.npmjs.org/babel-standalone/-/babel-standalone-6.26.0.tgz. Since 7.x it misses polyfills for nashorn. https://github.com/babel/babel/issues/7607

milpol commented 4 years ago

I will try out GraalVM as a Nashorn replacement, it should address this issue.

milpol commented 4 years ago

Current master works on GraalVM + Babel 7.8.4 in tests, I will smear this implementation with some love and push new version to central.

milpol commented 4 years ago

It didn't work, sorry :( it run into CL issue. Current master should be good though, I check it on external project.

milpol commented 4 years ago

Fix available in version 1.4.

ktor commented 4 years ago

Version 1.4 works flawlessly with @babel/standalone 7.8.7, thank you @milpol !

milpol commented 4 years ago

Great to hear, thanks!