Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
None
Description
If you have a Cordova project that does some sort of transpiling (for example, TypeScript -> JavaScript) and the source files aren't under the www folder, the original source files can't be found when debugging in a browser.
For example, you might have a project with these files:
scripts/foo.ts
www/scripts/foo.js
www/scripts/foo.js.map
The map file will likely link back to the original ts file as ../../scripts/foo.ts
Launch the project in a browser (cordova run browser), the path to the original ts file is invalid (in the context of the server) and the file isn't found.
Attachments
Issue Links
- links to