I am using WebPack with Angular 2/4 and are using modules that get lazy loaded. Therefore those modules and components are not included in the main .js file, the code resides in one of the files that WebPack generates counts up: 0.js, 1.js and so on.
My problem is that neither Chrome nor VS Code can debug code within those files for some reason. When I include the code to the main .js file, debugging works fine. Is there anything I can do about it?
Example:
I have a small directive that displays the local time in the HTML element. I use this directive in a component that get lazy loaded. When I try to debug the directive (or anything else that was lazy loaded) VS Code says the following:
Debugging is not possible in Chrome either. But if I use the directive in the root component (or anything else that is not lazy loaded) breakpoint are working in VS Code as well as in Chrome.
I tracked it down to the files WebPack is generating for the main client and the parts that are lazy loaded. Each chunk of lazy loaded components are located in files named 0.js, 1.js and so on - and I think here may be a cause of the problem.
MAP files
The map files for debugging are generated accordingly, this is my output:

