Skip to content

[CP] Emit source maps for wasm in flutter build web --wasm #153308

@mkustermann

Description

@mkustermann

Issue Link

dart-lang/sdk#55763

Target

stable

PR Link

#153310

Changelog Description

This adds source map support in flutter run / flutter build for dart2wasm. This is very helpful for debugging in Chrome DevTools.

Impacted Users

Flutter web wasm users

Impact Description

Just knowing the function name and looking at huge wasm bytecode bodies is making it very hard for users to track e.g. where exactly exceptions are coming from, etc. Having source map support makes this much better as one can see dart sources as well as line & column numbers.

Workaround

No.

Risk

low

Test Coverage

yes

Validation Steps

No response

Metadata

Metadata

Assignees

Labels

cp: approvedApproved cherry-pick requestcp: mergedCherry-pick has been merged to the release branch.cp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions