Currently when you set library in your webpack.config.js, you are able to debug your app on windows, but not on macOS and Linux. The problem is in the way path.join works for UNIX style paths. The current code appends ./ in the beginning of the path, which is normally a full path:
As you can see, this removes the starting / from the full path, so the VSCode extension is unabel to get correct path to the searched file (webpack.config.js in our case).
On windows the result is:
Currently when you set library in your webpack.config.js, you are able to debug your app on windows, but not on macOS and Linux. The problem is in the way
path.join
works for UNIX style paths. The current code appends./
in the beginning of the path, which is normally a full path:As you can see, this removes the starting
/
from the full path, so the VSCode extension is unabel to get correct path to the searched file (webpack.config.js in our case). On windows the result is: