GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ESM Module Output · Issue #17121 · webpack/webpack

ESM Module Output #17121

New issue
Copy link
New issue
Copy link
Closed
Feature
#19847
Closed
ESM Module Output#17121
Feature
#19847
Copy link
Labels
area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)area: runtimeEmitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)webpack-5Concerns the webpack 5 line

Description

@TheLarkInn
TheLarkInn
opened on May 2, 2023
Issue body actions
  • Consuming build output at build time
    • Build output supports tree-shaking

    • Weird CommonJS modules are wrapped

    • 💎import() is statically analyse-able + import chunks with new URL() instead of public path How to correctly parse the chunk resources in the library packaged by another webpack in webpack5? #15947

    • 💎Nice CommonJS modules are converted to ESM

    • module-wide side-effect information is kept in build output (generate package.json? use PURE flag?)

  • Developer Expreience
    • Inform (warn) the user about modules that are converted to strict mode
    • delete x in modules should be a build error as code is compiled in strict mode
  • Use the platform
    • load HMR manifest via import() + cache busting (mem leak? is fetch better?)
    • load HMR chunks via import()
    • prefetch chunks/assets via module preload/prefetch + new URL(...)
  • Consuming build output at runtime
    • 💎Live Bindings to entrypoint
    • 💎Test case for circular dependency w/ external
  • Other
    • Preserve CSS Import - (@vankop more information)
    • Preserve Reexport from Externals
    • Preserve new URL(), new Worker(). Maybe magic comment for this?
    • Support workerChunkLoading: "module" for node target
Reacted by Dmitriy Shekhovtsov, Isaac Johnston, silverwind, Vince Kálmán, Manish, Kai Zhang, Jay Harris, João Dias, andrew, Kholstinin Dmitry and 20 more
Reacted by Jiahan Chen, Isaac Johnston, Max Davidson, Manish, John Hill, Max, SUSHANT BANSAL and Vara Rahul Rajana

Activity

Next
  1. TheLarkInn
    added this to webpack 5/6on May 2, 2023
  2. TheLarkInn
    moved this to Priority - High in webpack 5/6on May 2, 2023
  3. alexander-akait commented on May 2, 2023

    @alexander-akait
    alexander-akait
    on May 2, 2023
    Member
    More actions

    Related #2933, I will go through everything and add what we might have missed

    Reacted by Jiahan Chen, Int and Max
  4. alexander-akait
    added
    enhancement
    webpack-5Concerns the webpack 5 line
    on May 5, 2023
  5. snitin315
    added
    gsoc-2024
    on Aug 25, 2023
  6. webpack-bot commented on Nov 25, 2023

    @webpack-bot
    webpack-bot
    on Nov 25, 2023
    Contributor
    More actions

    This issue had no activity for at least three months.

    It's subject to automatic issue closing if there is no activity in the next 15 days.

  7. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Nov 25, 2023
  8. zackarychapple commented on Nov 27, 2023

    @zackarychapple
    zackarychapple
    on Nov 27, 2023
    More actions

    bumping to keep from closing.

  9. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Nov 27, 2023
  10. 0xUgochukwu commented on Mar 27, 2024

    @0xUgochukwu
    0xUgochukwu
    on Mar 27, 2024
    More actions

    hey, i'm intrested in working on this during the summer at GSoC

    Reacted by Valentin and Joy Ogbonna
    Reacted by fregante
  11. sarah-abeer commented on Oct 3, 2024

    @sarah-abeer
    sarah-abeer
    on Oct 3, 2024
    More actions

    please assign me this issue

    Reacted by fregante and meet-159
  12. varunsehgal02 commented on Mar 2, 2025

    @varunsehgal02
    varunsehgal02
    on Mar 2, 2025
    More actions

    hey, I'm intrested in working on this during the summer at GSoC.

    Reacted by Bhargav Govind Katkam
    Reacted by fregante
  13. Jaishree2310 commented on Mar 3, 2025

    @Jaishree2310
    Jaishree2310
    on Mar 3, 2025
    More actions

    I like this project idea and would like to work under GSOC.
    I would appreciate some guidance to get started.
    @alexander-akait , @snitin315

    Reacted by fregante
  14. flying-pig007 commented on Mar 3, 2025

    @flying-pig007
    flying-pig007
    on Mar 3, 2025
    More actions

    I would like to work on this project under GSoC. I would appreciate it if you could grant me your permission

    Reacted by fregante
  15. 111 remaining items

  16. alexander-akait
    added 15 commits that reference this issue on Sep 20, 2026

    feat: keep module side-effect information in the build output

    6ac75d4

    feat: annotate every module instantiation webpack emits as a statement

    6ecd97c

    test: cover the deferred module instantiations

    01cf92e

    chore: regenerate types for the annotation helper

    ae09563

    fix: keep the side-effect annotations in a minified library

    c1a6810

    feat: report an entry whose exports a consumer cannot drop

    ec5ddea

    chore: fold the changeset into one entry

    75a3d89

    test: build the annotation matcher without hand-rolled escaping

    5756d9a

    test: snapshot the deferred bundles and shorten the changeset

    2386a33

    docs: tighten the annotation comments

    205d446

    test: name the deferred bundle snapshots

    2ef4a06

    test: shorten the snapshot helper's JSDoc

    7f7ce88

    fix: do not annotate the call that starts an entry

    de48b9c

    test: keep the deferred snapshots off the running node version

    3f698c8

    feat: keep module side-effect information in the build output (#21789)

    a1f0fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)area: runtimeEmitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)webpack-5Concerns the webpack 5 line

    Type

    Feature

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

      • webpack 5/6
        Closed
        Status
        Priority - High
        Show more project fields

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.