Strange freezing behaviour with watchify


I’m working on a project that involves a small npm run script…


  "scripts": {
    "build": "watchify src/app.js -o public/bundle.js -t [ babelify --presets [ react es2015 ] ]",
    "server": "cd public; live-server --port=1234 --entry-file=index.html"

The strange part is, every time I run the script using npm run build and then work on my project, every file save causes Atom to freeze and hang for a very long time. Opening Atom’s console reveals no error messages or logs of any kind. I don’t even know how to begin debugging this issue, any advice?


lol, looks like I’ve discovered the issue - I had my bundle.js file open in the editor and I’m assuming that the freezing was Atom reloading the file every time it’d been updated. I should’ve known better - in any case, I really wish Atom’s large file handling was a little better.