【发布时间】:2023-03-04 10:50:02
【问题描述】:
我正在尝试调试 Ionic 2 应用程序并且我想知道如何为每个映射到 typescript 文件包含 souceMap strong>javascript 文件。
但是当我在 Chrome 中打开开发工具时,没有任何 souceMap 文件。
另外,我在 tsconfig.json 文件中启用了 "sourceMap":true。
这是我的 tsconfig.json 文件
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5",
"types": [
"jasmine"
]
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
之后,我尝试根据此更改 ionic.config.json sourcemaps not working for ionic 2。但这对我也不起作用。
有谁知道怎么回事?
【问题讨论】:
-
您在运行应用程序时是否遇到任何错误?
-
没有错误。应用程序运行良好。
标签: javascript angular typescript ionic2