Skip to content

docs(externals): document defer/source phase preservation in ESM externals#8239

Merged
alexander-akait merged 2 commits into
mainfrom
docs/externals-defer-source-phase
May 19, 2026
Merged

docs(externals): document defer/source phase preservation in ESM externals#8239
alexander-akait merged 2 commits into
mainfrom
docs/externals-defer-source-phase

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

Summary

Webpack 5.107 preserves the defer and source import phase keywords on external dependencies the same way it preserves import attributes.

Adds two new subsections under externalsType.module and externalsType.import in configuration/externals.mdx, showing both the static and dynamic forms emitted in the output bundle.

Refs: webpack/webpack#20934

Test plan

  • Visual check of both new subsections
  • Verify the badges show "5.107.0+"

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment May 19, 2026 3:01pm

Request Review

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 17, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bjohansebas / name: Sebastian Beltran (6386fc4)

…rnals

Webpack 5.107 preserves the defer and source import phase keywords on
external dependencies the same way it preserves import attributes. Adds
subsections under externalsType.module and externalsType.import showing
the static and dynamic forms emitted in the output bundle.

Refs: webpack/webpack#20934
@alexander-akait
Copy link
Copy Markdown
Member

Let's fix lint

The reference link pointed to /configuration/module/#ruleparserimportattributes,
which does not exist (the fragment-check on PR #8239 failed). Webpack
docs have no dedicated "import attributes" page; the closest internal
anchor is #rulewith, but that documents Rule.with as a matcher rather
than import attributes themselves. Replace the internal link with the
TC39 proposal URL so readers can learn what import attributes are.
@alexander-akait alexander-akait merged commit 775dec0 into main May 19, 2026
9 checks passed
@alexander-akait alexander-akait deleted the docs/externals-defer-source-phase branch May 19, 2026 15:19
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

Successfully merging this pull request may close these issues.

2 participants