If you use webpack as an application package, instead of collapsing, try creating a file in the root of the project, webpack.config.js, and write this content:
module.exports = { devtool: 'source-map' }
In the typescript configuration file tsconfig.json yuo should have an entry:
"sourceMap": true
source share