[ 
https://issues.apache.org/jira/browse/CB-12284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768426#comment-15768426
 ] 

ASF subversion and git services commented on CB-12284:
------------------------------------------------------

Commit d106219d36a2fb35bd189b9b9fd9dc7c3a125da2 in cordova-lib's branch 
refs/heads/serve-1.0.x from [~TimBarham]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=d106219 ]

CB-12284 Include project root as additional root for static router

This can be useful in cases where source files that have been transpiled (such 
as TypeScript files) are located under the project root on a path that mirrors 
the the transpiled file's path under the platform root, and is pointed to by a 
map file (otherwise when debugging in a browser, the browser won't be able to 
find the original source file).


> Source map source file not found in Chrome
> ------------------------------------------
>
>                 Key: CB-12284
>                 URL: https://issues.apache.org/jira/browse/CB-12284
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaServe
>    Affects Versions: Master
>            Reporter: Tim Barham
>            Assignee: Tim Barham
>             Fix For: Master
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to