Unable to debug source code for babylonjs using webpack

I created a project and packaged it using webpack.

But I can’t enter the .ts file when debugging, I can only enter the .js file.

This should be a problem with webpack. I tried to add soucemap-loader and it didn’t solve the problem.

Pinging @sebavan

It is probably because your node_modules folder is not visible from you local server. It looks like you are serving everything from the src folder ?

Actually in your project if you uncomment the source-map-loader, it seems to work:

After uncommenting, you can see the ts file in the local service, but when using F11 debugging, you can’t enter the correct ts file, but it destroys the debugging information, which is worse than entering the js file.