I would like to use babel to compile Fly using tests written in ES6 (I was using a mix of ES5/ES6 until now by running tape with node âharmony) and I am trying to use:
babel-node ./node_modules/tape/bin/tape test/*.js
which works fine until the part in Fly in which I use require("babel-core/requireâ)
to compile Flyfile.js
files in the _fly_.
I donât know if you canât call require(âbabel-core/requireâ)
more than once, but all my tests pass except for the offending one where it hangs: (the debug messages are mine, you can see where it gets stuck)
_: '/Users/b/dev/fly/node_modules/.bin/babel-node' }
fly:bind register bind 'babel-core/register' +54ms
fly:bind register bind 'babel/register' +184ms
ă»ă»ă»ă»
babel-core/require
ill-advised?Please see the README:
For questions and support please visit the Slack community or StackOverflow. The Babel issue tracker is exclusively for bug reports and feature requests.
@sebmck If multiple babel-core/require
bindings is not advised against, then could it be a bug?