Alexandre Strzelewicz

Results 88 comments of Alexandre Strzelewicz
trafficstars

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: ![image](https://user-images.githubusercontent.com/757747/121012475-08b57c00-c798-11eb-9002-24e709e1c8ea.png)

Which pm2 version?