I know threads like this exist, but I have yet to get this to work.
I’m trying to debug an Ionic 2 app on my iOS device. Chrome reads the source mappings and I’m able to debug my TypeScript files, line-by-line, without problem on the web, but when I try to do the same in Safari Technology Preview (to inspect what’s displaying on the iPad), only transpiled JavaScript files appear. I changed package.json to include the following per a suggestion on StackOverflow:
"config": {
"ionic_source_map": "source-map",
"ionic_bundler": "webpack",
"ionic_source_map_type": "eval"
}
I can see all of the .ts files under “Extra Scripts” when I browse the source tree in Safari, but their contents are transpiled JavaScript as well from Webpack. I might be missing something obvious here; anyone get this to work?
Ionic Framework: 2.0.0
Ionic Native: 2.4.1
Ionic App Scripts: 1.1.0
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.7.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel