Ajantha bandara Ajantha bandara - 4 months ago 42
TypeScript Question

ionic 2 typescript source map not created

I am trying to debug Ionic 2 Application And I want to know how to include souceMap for every typescript file that mapping to the javascript files.

But when I open the dev tools in Chrome there is no any souceMap file.


Also I enable the "sourceMap":true in tsconfig.json file.
This is my tsconfig.json file

"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5",
"types": [
"include": [
"exclude": [
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false

After that I tried changing the ionic.config.json according to this
sourcemaps not working for ionic 2. But it also did not work for me.

Does anyone know what is the wrong ?


found the answer.

Still .map files are not generated. Because it is a bug see this issue. But now I can debug after adding this



into package.json file. Now all the .ts files are shown in the debug mode.