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
support sourcemaps with "package:" imports in dartium #11226
Comments
Added Fixed label. |
This comment was originally written by podivilov@google.com |
Added this to the M7 milestone. |
Do we really need this for M8? |
I don't think this should be an m8 item given that we aren't relying on code generators as much. |
Removed this from the Later milestone. |
Added this to the 1.6 milestone. |
Removed Oldschool-Milestone-Later label. |
I don't think we need this for 1.6 . Removed this from the 1.6 milestone. |
Sourcemaps when using 'package:' imports might have been working before, but it doesn't seem to be working anymore. The following files can be used to repro the problems (they are also attached in a tar ball below):
index.html:
<html><body><script> navigator.webkitStartDart();</script>
<script type="application/dart">
import 'package:p/a.dart' as a;
main() => a.m();
</script></body>
packages/p/a.dart:
library a;
m() => print("hi");
//@ sourceMappingURL=a.map
packages/p/a.map:
{"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"packages/foo/a.dart"}
The last file exists, but the contents are not really relevant.
If I use a file:/// URL to load this application, we don't seem to attempt to load the .map file.
If using a local server, the request for the .map file incorrectly includes a 'package:' string in the request.
For example, "http://localhost:8000/package:p/a.map"
Attachment:
source_map_bug.tar (10 KB)
The text was updated successfully, but these errors were encountered: