Alexandre Strzelewicz
Alexandre Strzelewicz
If anyone have a clue of which option should be passed to spawn function to avoid this behavior that is welcome. Here is the culprit: https://github.com/Unitech/pm2/blob/master/lib/God/ForkMode.js#L98
Thanks for this report and suggestion, will dig this
Will work on it by the next 7 days
Ok I landed the ES module support
Can anyone try it out please? ``` npm install Unitech/pm2#development -g pm2 update pm2 start app.mjs ``` Thank you!
Release on pm2 4.2.2 ``` npm install pm2@latest -g pm2 update ```
This test: https://github.com/Unitech/pm2/blob/0d44c41b07193bb793420ea23c476e020f8e99d5/test/e2e/esmodule.sh is passing What is wrong with these tests? Let me know so I can fix whatever is missing
With pm2#development: app.js ```javascript // app.mjs import { addTwo } from './addTwo.js'; // Prints: 6 console.log(addTwo(4)); ``` addTwo.js ```javascript // addTwo.mjs function addTwo(num) { return num + 2; } export...
Tried to start a script in children folder and it still works: 
Which pm2 version?