-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pub build: javascript lacks release information and sourceMappingURL #15563
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
Comments
Bouncing over to dart2js since this is a request to add something to the generated JS. Removed Library-Barback label. |
FYI: when I do a normal dart2js (even minimized) I still get the build info at the top and sourceMappingURL at the bottom. Curious why the output from pub/barback would lack this. Is it something w/ options passed (or not passed) into dart2js? |
Removed Area-Dart2JS label. |
The user of the compiler library decides were to put the source maps. Consequently, the compiler library expects that the user appends the sourceMappingURL. |
Ah, OK. We can handle that then. Thanks for clarifying! |
I should probably mention that this is the current behavior. Right now, the compiler API uses a "CompilerOutputProvider" to return an EventSink<String>. It would make sense to change the API so that the compiler library also becomes aware of the URI corresponding to this EventSink so that it can information such as sourceMappingURL. |
Filed issue #15607. |
Marked this as being blocked by #15607. |
Removed Priority-Unassigned label. |
Marked this as blocking #15829. |
Issue #16472 has been merged into this issue. |
Can I ask us to consider this issue for Milestone 1.2? I'm trying to integrate pub serve into my workflow, but this bug makes it very hard to do so. Without source maps, debugging is very difficult. Thanks for the consideration! |
Also, trying to get a good mobile dev workflow, and pub serve could be a real win. But I extra-need source maps for mobile since we don't produce builds of Dartium for Android. :) |
Seth: You might want to make this plea on issue #15607, since that's where work needs to happen to get this supported. |
Roger that, thanks for the pointer. |
Set owner to @munificent. |
This is fixed now. It should work with both pub serve and pub build. Note that with pub build, you'll need to do --mode debug to get our Dart source files copied over to the build output where the browser can find them. Added Fixed label. |
Thanks Bob! |
This issue has been moved to dart-lang/pub#765. |
Using Pub version 1.1.0-edge.31027
But with the attached installed dependencies
I'm getting the map files generated, which is great, but I need to manually add sourceMappingURL at the bottom of the generated JS to get Chrome to see them
...also nice to have the compiler version at the top, but that's less important
Attachment:
pubspec.lock (2.37 KB)
The text was updated successfully, but these errors were encountered: