Adding support for experimental wasm dynamic modules#169256
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
71dbdb5 to
9ac571b
Compare
|
Parts of this have landed already in #169313 |
eyebrowsoffire
left a comment
There was a problem hiding this comment.
Change looks good! The unit tests need to be modified, and it would be nice if you could add a unit test that tests this flag. Probably a spot for a unit test would be packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart
|
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@biggs0125 do we plan on moving forward with this PR? |
We're still undecided on how we want to move forward with this feature. So this PR is still on hold for now. |
|
Greetings from stale PR triage! 👋 |
|
Thanks for the ping, closing this out for now since we haven't had time to make a real decision here. |
Adds support for the experimental dynamic module feature to Flutter builds targeting wasm.
Also adds the necessary loading mechanism to the entrypoint/embedder script to allow Flutter to load the additional dynamic module files (both a JS and a WASM file).
Allows dynamic modules to be compiled using commands similar to:
Flutter tools does the work of managing the additional files produced by the main module compilation and passes them to the compilation of the dynamic module.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.