Skip to content

feat(target): add support for universal ESM target in platform properties#21252

Merged
alexander-akait merged 2 commits into
webpack:mainfrom
bjohansebas:universal-platform
Jun 23, 2026
Merged

feat(target): add support for universal ESM target in platform properties#21252
alexander-akait merged 2 commits into
webpack:mainfrom
bjohansebas:universal-platform

Conversation

@bjohansebas

Copy link
Copy Markdown
Member

Summary

This is to simplify the logic in dev-server

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI

Copilot AI review requested due to automatic review settings June 23, 2026 00:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 69ffee3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
webpack Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.80%. Comparing base (743256f) to head (69ffee3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21252   +/-   ##
=======================================
  Coverage   92.80%   92.80%           
=======================================
  Files         589      589           
  Lines       64616    64617    +1     
  Branches    17978    17979    +1     
=======================================
+ Hits        59965    59966    +1     
  Misses       4651     4651           
Flag Coverage Δ
css-parsing 28.69% <100.00%> (+<0.01%) ⬆️
html5lib 31.11% <100.00%> (+<0.01%) ⬆️
integration 88.92% <100.00%> (+<0.01%) ⬆️
test262 45.42% <100.00%> (+0.03%) ⬆️
unit 41.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq

codspeed-hq Bot commented Jun 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚡ 2 improved benchmarks
❌ 2 regressed benchmarks
✅ 140 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory benchmark "asset-modules-bytes", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 246.6 KB 1,050.8 KB -76.53%
Memory benchmark "many-modules-esm", scenario '{"name":"mode-production","mode":"production"}' 7.3 MB 10.5 MB -30.03%
Memory benchmark "wasm-modules-sync", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 358.3 KB 123.5 KB ×2.9
Memory benchmark "many-chunks-esm", scenario '{"name":"mode-production","mode":"production"}' 9.3 MB 7 MB +33.71%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing bjohansebas:universal-platform (69ffee3) with main (743256f)

Open in CodSpeed

@alexander-akait alexander-akait merged commit a592d46 into webpack:main Jun 23, 2026
63 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (a592d46).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@a592d46
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@a592d46
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@a592d46

@bjohansebas bjohansebas deleted the universal-platform branch June 23, 2026 15:18
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.

3 participants