Is there a way to use the preload args of node?
vanabel opened this issue · comments
I find some project need to start with the pre-load command;
node -r esm main.js
I try to run it as
supervisor -- main.js -r esm
However, this not work, did you know any solution?
Hello, I had the same problem but with --harmony-proxies, you need the "-r esm" passed to node not to your program, so you need to add the support for the "-r" argument to supervisor. Like I did in my fork:
cschinnerl-cf@53d418a
But maybe I should have done a pull request back, so it would stay up to date.
I solved it by adding an index.js and call main.js in it as the esm package home.
I solved it by adding an index.js and call main.js in it as the esm package home.
hey do you can explain me how did you make it?
I have not could understand it
i created two files(indez and main) but my main file js is app.js and i run node app
and continue the problem
and when i run node -r esm app.js
works fine