jarslab / babel-maven-plugin

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

Plugin fails with babel 7.6.4 #8

Closed buckelieg closed 4 years ago

buckelieg commented 5 years ago

Plugin fails with message

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

I suppose that Babael 7.6.4 does not include WeakMap polyfill which is needed to be addressed during build process. It would be nice to have an option to configure babel execution runtime in plugin configuration

ktor commented 4 years ago

The 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

Please check current master (no bundle yet).

ktor commented 4 years ago

@buckelieg, version 1.4 works flawlessly with @babel/standalone 7.8.7