Skip to content

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

Closed
kevmoo opened this issue Dec 10, 2013 · 20 comments
Closed

pub build: javascript lacks release information and sourceMappingURL #15563

kevmoo opened this issue Dec 10, 2013 · 20 comments
Assignees

Comments

@kevmoo
Copy link
Member

kevmoo commented Dec 10, 2013

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)

@munificent
Copy link
Member

Bouncing over to dart2js since this is a request to add something to the generated JS.


Removed Library-Barback label.
Added Area-Dart2JS label.

@kevmoo
Copy link
Member Author

kevmoo commented Dec 10, 2013

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?

@peter-ahe-google
Copy link
Contributor

Removed Area-Dart2JS label.
Added Area-Pub label.

@peter-ahe-google
Copy link
Contributor

The user of the compiler library decides were to put the source maps. Consequently, the compiler library expects that the user appends the sourceMappingURL.

@munificent
Copy link
Member

Consequently, the compiler library expects that the user appends the sourceMappingURL.

Ah, OK. We can handle that then. Thanks for clarifying!

@peter-ahe-google
Copy link
Contributor

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.

@peter-ahe-google
Copy link
Contributor

Filed issue #15607.

@munificent
Copy link
Member

Marked this as being blocked by #15607.

@munificent
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Medium label.

@munificent
Copy link
Member

Marked this as blocking #15829.

@nex3
Copy link
Member

nex3 commented Feb 1, 2014

Issue #16472 has been merged into this issue.

@sethladd
Copy link
Contributor

sethladd commented Feb 2, 2014

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!

@sethladd
Copy link
Contributor

sethladd commented Feb 2, 2014

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. :)

@nex3
Copy link
Member

nex3 commented Feb 3, 2014

Seth: You might want to make this plea on issue #15607, since that's where work needs to happen to get this supported.

@sethladd
Copy link
Contributor

sethladd commented Feb 4, 2014

Roger that, thanks for the pointer.

@peter-ahe-google
Copy link
Contributor

Marked this as being blocked by #17259.
Unmarked this as being blocked by #15607.

@munificent
Copy link
Member

Set owner to @munificent.
Added Started label.

@munificent
Copy link
Member

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.

@sethladd
Copy link
Contributor

sethladd commented Mar 7, 2014

Thanks Bob!

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#765.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants