a-la / alamode

A Node.JS RegExp-based transpiler of source code.
https://alamode.cc
GNU Affero General Public License v3.0
10 stars 1 forks source link

Allow to write imports in the same file with the hook. #2

Closed zavr-1 closed 5 years ago

zavr-1 commented 5 years ago

It is possible to catch an error and recompile the file.

zavr-1 commented 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.