Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated source map contains absolute file uri to sources. #16942

Closed
DartBot opened this issue Feb 19, 2014 · 1 comment
Closed

Generated source map contains absolute file uri to sources. #16942

DartBot opened this issue Feb 19, 2014 · 1 comment
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

Comments

@DartBot
Copy link

DartBot commented Feb 19, 2014

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"

@kevmoo
Copy link
Member

kevmoo commented Feb 19, 2014

Added Area-Dart2JS, Triaged labels.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants