Alright. I'v gotten closer to a solution. The bug doesn't come in all cases. It seems to only be when there is a junction in a node_module folder. I made a tiny sample project that correctly reproduces the issue (see attachments).
To reproduce, follow these steps:
-- Setup --
-- Bug --
Whereas if you Open the file c:\temp\junctionBug\external\moduleA\index.js, set a breakpoint at the same line and run in debug, the breakpoint will hit!
It would be wonderful if this could be fixed, as I could have junctions all over the place and develop locally with a smile on my face and love in my heart.
If you can reliably reproduce this behaviour then please submit a new Bug ticket directly to the Issue Tracker at http://youtrack.jetbrains.com/issues/WEB
But before that: