Closed zavr-1 closed 5 years ago
Don't think it's possible. There might be a possibility to write alanode
which will just setup the require hook automatically, but it is not the same as native node module.js
because alamode
needs to be installed either globally, or be run via a package.json
script.
It is possible to catch an error and recompile the file.