Generated source map contains absolute file uri to sources. #16942
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This issue was originally filed by samuel....@vacuumapps.com
Build project using pub build.
You will get file build/web/index.dart.js.map, that looks following way:
{
"version": 3,
"sourceRoot": "",
"sources": ["file:///home/samuel/some_path/some_lib.dart", etc...]
etc...
}
When I serve the page from the server, this don't work, because pages from web can't access local resources through file uri.
I would instead expect that sources contains relative paths to scripts and let me specify sourceRoot where these files can be accessed.
It would also be great, if it could be configurable, where the sourceRoot should point to, and accordingly solve 15563 issue, instead, I will need to enter these manually.
What version of the product are you using? On what operating system?
Dart VM version: 1.2.0-dev.5.8 (Mon Feb 17 00:11:18 2014) on "linux_x64"
The text was updated successfully, but these errors were encountered: