Skip to content

Deprecate DDC's AMD module system in Flutter Web #142060

Closed

Description

@Markzipan

DDC currently supports three different formats for handling modules: DDC, AMD, and ES6. Flutter Web externally uses the AMD module system, but all of google3 and Flutter Web internally use the DDC module system (due to its greater configurability).

Consolidating module systems will give us more granular control over how libraries are loaded/updated, allowing us to better support features like hot restart, hot reload, and multi-app configurations. We don't expect any major user-visible changes from this.

This will be a multi-step process that will involve:

  • Adding DDC module system support to Dart Web tooling (such as DWDS)
  • Plumbing DDC module system support through flutter_tools and the engine and locking it behind a flag
  • Extending core functionality (hot restart, test runners, etc.) to support the DDC module system to reach feature parity with AMD.
  • Enabling the new module system and watching for unexpected changes.
  • Cleaning up AMD module system code artifacts

See related issue in the Dart SDK: dart-lang/sdk#52361

Activity

  1. changed the title [-]Deprecate the AMD module system in Flutter Web[/-] [+]Deprecate DDC's AMD module system in Flutter Web[/+] on Jan 23, 2024
  2. added
    team-toolOwned by Flutter Tool team
    P2Important issues not at the top of the work list
    triaged-toolTriaged by Flutter Tool team
    on Jan 23, 2024
  3. added
    c: tech-debtTechnical debt, code quality, testing, etc.
    tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.
    fyi-webFor the attention of Web platform team
    on Jul 11, 2025
  4. mdebbar commented on Aug 7, 2025

    @mdebbar
    Contributor

    I believe this is being done within the DDC Hot Reload umbrella. cc @nshahan

  5. self-assigned this
    on Aug 7, 2025
  6. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Dec 12, 2025
  7. flutter-triage-bot commented on Dec 12, 2025

    @flutter-triage-bot

    This issue is assigned to @nshahan but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  8. nshahan commented on Dec 12, 2025

    @nshahan
    Contributor

    I've been waiting for a full release cycle with all the features enabled by default in the new module system so we can assess any feedback we get and then I will deprecate the ability to switch back to the old module system. After a deprecation release I will remove it entirely.

  9. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Dec 12, 2025
  10. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Apr 17, 2026
  11. flutter-triage-bot commented on Apr 17, 2026

    @flutter-triage-bot

    This issue is assigned to @nshahan but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  12. 6 remaining items

  13. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Sep 7, 2026
  14. flutter-triage-bot commented on Sep 7, 2026

    @flutter-triage-bot

    This issue is assigned to @nshahan but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  15. nshahan commented on Sep 9, 2026

    @nshahan
    Contributor

    Still planning on wrapping this up soon. The removal of the opt out flag has now shipped in the stable release so I'm going to cleanup the last remaining support that is totally inaccessible from the users perspective.

  16. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Sep 10, 2026
  17. github-actions commented on Oct 28, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  18. locked as resolved and limited conversation to collaborators on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listblockedIssue is blocked by another issuec: tech-debtTechnical debt, code quality, testing, etc.fyi-webFor the attention of Web platform teamteam-toolOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions