Babel: Multiple babel-core/require hangs

Created on 30 Aug 2015  Â·  2Comments  Â·  Source: babel/babel

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

・・・・
  • Is there any way to detect whether the "require hook" is “installed”?
  • or is it using babel to test a project using the babel-core/require ill-advised?
outdated

All 2 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

babel-bot picture babel-bot  Â·  3Comments

tracker1 picture tracker1  Â·  3Comments

ksjun picture ksjun  Â·  3Comments

mathiasbynens picture mathiasbynens  Â·  3Comments

sorrycc picture sorrycc  Â·  3Comments