I\'m writing a small CLI tool in node and would like to use ES6 for that.
index.js looks like:
#!/usr/bin/env node
require(\'babel/register\');
module.e
The require hook is meant more for local development than for production use. Ideally you'd precompile before distributing your package. You are running into https://github.com/babel/babel/issues/1889.
You'll need to explicitly tell the register hook not to ignore your application.
require('babel/register')({
ignore: /node_modules\/(?!my-tool)/
});