Using Angular -CLI 1.0 and Angular 4, I cannot get the source maps, despite the presence //# sourceMappingURL=main.bundle.js.map
in the associated JavaScript. Does anyone know how to work to get the source files working in IE-11? Normally this would not be a big problem, I would just switch to firefox or chrome. But I'm developing an Excel add-in with Office-js api, and it uses the IE11 built-in browser to display the add-in, so I am stuck with it.
My tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"pretty": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
tsconfig.app.json:
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
source
share