Skip to content

fix(externals): keep a core module external as the code spells it when node: is supported - #22593

Merged
alexander-akait merged 2 commits into
mainfrom
fix/node-prefix-keep-external-spelling
Oct 10, 2026
Merged

alexander-akait merged 2 commits into
mainfrom
fix/node-prefix-keep-external-spelling

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Summary

#22565 also added node: to a bare core module external whenever output.environment.nodePrefixForCoreModules is on. An unversioned target: "node" turns that option on, so the bundle requires node:worker_threads, which Node 12 can't load. The Node 12 integration job now fails with Cannot find module 'node:…' (56 tests) on every PR.

This keeps the first half of #22565 (both spellings share one module id) and undoes the second: a bare external stays bare again, and only a universal bundle gains the prefix.

// target: "node", require("worker_threads") as an external
require("node:worker_threads"); // main — throws on Node 12
require("worker_threads");      // this PR

The second commit ports #22586's one-line CSS fix, so lint, unit and the CSS checks can pass here; it no-ops once #22586 lands.

What kind of change does this PR introduce?

fix

Did you add tests for your changes?

Yes: test/configCases/externals/node-prefix-user-externals now asserts a bare external stays bare with the option on (fails on main). Snapshots and the two node cases #22565 updated are restored.

Does this PR introduce a breaking change?

No. It restores the released behavior; the unreleased changeset from #22565 is trimmed to match.

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

n/a

Use of AI

Written with Claude Code: it traced the Node 12 failures to #22565, made the change and ran the affected config cases; I reviewed it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD


Generated by Claude Code

Summary by CodeRabbit

  • Behavior Changes
    • Node core-module requests are no longer automatically given a node: prefix just because that option is enabled. Universal targets still add the prefix to unprefixed requests; other targets preserve the notation used in the request.
    • When prefixing is disabled, existing node: prefixes are still removed.

…n `node:` is supported

#22565 also prefixed a bare core module external with `node:` whenever `output.environment.nodePrefixForCoreModules` was on. An unversioned `node` target turns that option on, so bundles run on Node 12 required `node:worker_threads` and failed. A bare external now stays bare again; only a universal bundle gains the prefix.

Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
… ordering declarations

Ported from #22586: main throws minifying an at-rule block of several declarations, which fails this branch's lint, unit and CSS checks.

Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
@changeset-bot

changeset-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6eeb6d0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

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

Click here to learn what changesets are, and how to add one.

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

@github-actions github-actions Bot added the area: css CSS support (lib/css) label Oct 10, 2026
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Install it locally:

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

@github-actions

Copy link
Copy Markdown
Contributor

Types Coverage

Coverage after merging fix/node-prefix-keep-external-spelling into main will be
97.29%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
bin
   webpack.js98.82%100%100%98.82%103
declarations
   WebpackOptions.ts99.94%100%100%99.94%4188
examples
   build-common.js100%100%100%100%
   buildAll.js100%100%100%100%
   examples.js100%100%100%100%
   template-common.js98.21%100%100%98.21%72
examples/custom-javascript-parser
   test.filter.js100%100%100%100%
examples/custom-javascript-parser/internals
   acorn-parse.js100%100%100%100%
   meriyah-parse.js100%100%100%100%
   oxc-parse.js100%100%100%100%
examples/markdown
   webpack.config.mjs100%100%100%100%
examples/module-federation
   test.filter.js100%100%100%100%
examples/reexport-components
   test.filter.js100%100%100%100%
examples/ssr
   test.filter.js100%100%100%100%
examples/typescript
   test.filter.js100%100%100%100%
examples/typescript-non-erasable
   test.filter.js50%100%100%50%5
examples/virtual-modules
   test.filter.js100%100%100%100%
examples/wasm-bindgen-esm
   test.filter.js100%100%100%100%
examples/wasm-complex
   test.filter.js100%100%100%100%
examples/wasm-emscripten
   test.filter.js100%100%100%100%
examples/wasm-simple
   test.filter.js100%100%100%100%
examples/wasm-simple-source-phase
   test.filter.js100%100%100%100%
lib
   Chunk.js100%100%100%100%
   Compilation.js98.60%100%100%98.60%1757, 2078, 2085, 2093, 2115, 2118, 23, 3075, 3578–3579, 3611, 4200, 4204, 4331, 4352, 4477, 4514, 4521, 4574–4575, 4579, 4584, 4600–4601, 4615–4616, 4621–4622, 5145, 5171, 6001, 6018, 6036, 6052, 6067, 6092, 6095, 6463, 6466–6467, 6472, 6487, 6570, 6594, 6708, 837–838
   Compiler.js98.81%100%100%98.81%1116, 1153, 1156, 1336–1337, 1345, 848, 934, 975
   Dependency.js100%100%100%100%
   DependencyTemplate.js100%100%100%100%
   EntryPlugin.js100%100%100%100%
   Entrypoint.js100%100%100%100%
   ExternalsPlugin.js100%100%100%100%
   FileSystemInfo.js100%100%100%100%
   InitFragment.js100%100%100%100%
   LibraryTemplatePlugin.js100%100%100%100%
   ModuleFilenameHelpers.js100%100%100%100%
   ModuleNotFoundError.js100%100%100%100%
   MultiCompiler.js98.88%100%100%98.88%460, 532, 719, 784
   NormalModule.js100%100%100%100%
   NullFactory.js100%100%100%100%
   ProgressPlugin.js100%100%100%100%
   RawModule.js100%100%100%100%
   RequestShortener.js100%100%100%100%
   SingleEntryPlugin.js100%100%100%100%
   WebpackError.js100%100%100%100%
   index.js99.78%100%100%99.78%206
   webpack.js97.84%100%100%97.84%278, 300, 302
lib/asset
   AssetBytesGenerator.js100%100%100%100%
   AssetBytesParser.js100%100%100%100%
   AssetGenerator.js100%100%100%100%
   AssetModule.js100%100%100%100%
   AssetModulesPlugin.js98.15%100%100%98.15%338, 362, 365, 495, 57, 62
   AssetParser.js100%100%100%100%
   AssetSourceGenerator.js100%100%100%100%
   AssetSourceParser.js100%100%100%100%
   RawDataUrlModule.js100%100%100%100%
   WebManifestGenerator.js100%100%100%100%
   WebManifestParser.js100%100%100%100%
lib/async-modules
   AsyncModuleHelpers.js100%100%100%100%
   AwaitDependenciesInitFragment.js100%100%100%100%
   InferAsyncModulesPlugin.js100%100%100%100%
   isGeneratorLowered.js100%100%100%100%
lib/bun
   BunTargetPlugin.js100%100%100%100%
lib/cache
   AddBuildDependenciesPlugin.js100%100%100%100%
   AddManagedPathsPlugin.js100%100%100%100%
   Cache.js96.49%100%100%96.49%10, 104
   CacheFacade.js100%100%100%100%
   IdleFileCachePlugin.js97.92%100%100%97.92%75, 87, 95
   MemoryCachePlugin.js92%100%100%92%33, 42
   MemoryWithGcCachePlugin.js93.42%100%100%93.42%106, 120–121, 130, 88
   PackFileCacheStrategy.js96.54%100%100%96.54%1304, 1404, 1408, 1470, 1716, 1800, 1823, 1853, 682, 701, 711–713, 715, 731–732, 737, 740, 742, 747, 752, 777, 783, 817, 823, 829, 834, 845, 854, 859–860, 862, 879, 885–886, 888
   ResolverCachePlugin.js100%100%100%100%
   getLazyHashedEtag.js100%100%100%100%
   mergeEtags.js100%100%100%100%
lib/config
   OptionsApply.js100%100%100%100%
   PlatformPlugin.js100%100%100%100%
   WebpackOptionsApply.js100%100%100%100%
   WebpackOptionsDefaulter.js100%100%100%100%
   browserslistTargetHandler.js100%100%100%100%
   cli.js98.61%100%100%98.61%116, 546, 578, 628, 9
   defaults.js99.44%100%100%99.44%1624–1626, 1634, 283, 286, 291, 295
   defineConfig.js100%100%100%100%
   getClaimedAssetTypes.js100%100%100%100%
   normalization.js99.12%100%100%99.12%279–280, 346, 361
   target.js100%100%100%100%
   validateSchema.js94.67%100%100%94.67%100, 87, 89, 98
lib/container
   ContainerEntryDependency.js100%100%100%100%
   ContainerEntryModule.js100%100%100%100%
   ContainerEntryModuleFactory.js100%100%100%100%
   ContainerExposedDependency.js100%100%100%100%
   ContainerPlugin.js100%100%100%100%
   ContainerReferencePlugin.js100%100%100%100%
   FallbackDependency.js100%100%100%100%
   FallbackItemDependency.js100%100%100%100%
   FallbackModule.js100%100%100%100%
   FallbackModuleFactory.js100%100%100%100%
   HoistContainerReferencesPlugin.js100%100%100%100%
   ModuleFederationPlugin.js100%100%100%100%
   RemoteModule.js100%100%100%100%
   RemoteRuntimeModule.js100%100%100%100%
   RemoteToExternalDependency.js100%100%100%100%
   declaredRemotes.js100%100%100%100%
   moduleFederationHooks.js100%100%100%100%
   options.js100%100%100%100%
lib/context
   ContextExclusionPlugin.js100%100%100%100%
   ContextModule.js99.88%100%100%99.88%1494
   ContextModuleFactory.js95.66%100%100%95.66%230, 257, 276, 280–281, 289, 465, 486, 491, 532, 541, 543, 547, 550, 556–557
   ContextReplacementPlugin.js100%100%100%100%
lib/css
   CssGenerator.js99.47%100%100%99.47%1085, 136, 842
   CssInjectStyleRuntimeModule.js100%100%100%100%
   CssLoadingRuntimeModule.js100%100%100%100%
   CssModule.js83.16%100%100%83.16%197, 202–210, 212–217
   CssModulesPlugin.js99.86%100%100%99.86%886
   CssParser.js99.48%100%100%99.48%1048, 1079, 24, 2410, 3057, 3060, 3066, 3107, 3110, 3149, 3152, 3489, 5048, 5051, 932
   CssServerStylesRuntimeModule.js100%100%100%100%
   conventions.js98.65%100%100%98.65%93
   cssMinify.js97.50%100%100%97.50%162, 171
   data.js99.84%100%100%99.84%229, 5601
   syntax-parser.js99.65%100%100%99.65%10098–10099, 10633–10634, 10671, 10866, 10912, 13134–13137, 13237–13238, 13335–13336, 13981, 14278, 14280, 14770, 15136, 17243, 2467, 3166, 3168, 3173, 3192, 3937, 3943, 7384, 7422, 7429
   syntax-printer.js99.31%100%100%99.31%2532–2533, 2535–2536, 2538–2539, 2544, 2811–2814, 2907, 3580, 367, 4000, 4109, 4797, 5098, 5884, 735
   syntax.js100%100%100%100%
   topologicalSort.js100%100%100%100%
lib/debug
   ProfilingPlugin.js96.22%100%100%96.22%169, 425, 554, 561, 570, 574, 583, 588, 594, 599, 92
lib/define
   DefinePlugin.js98.85%100%100%98.85%1495, 268–269, 285, 304, 378, 936, 938, 943, 967
   DotenvPlugin.js98.07%100%100%98.07%391, 439, 452–453
   EnvironmentPlugin.js97.14%100%100%97.14%49
lib/deno
   DenoTargetPlugin.js100%100%100%100%
lib/dependencies
   ConstDependency.js100%100%100%100%
   ContextElementDependency.js100%100%100%100%
   NullDependency.js100%100%100%100%
lib/dependencies/amd
   AMDDefineDependency.js100%100%100%100%
   AMDDefineDependencyParserPlugin.js100%100%100%100%
   AMDPlugin.js99.31%100%100%99.31%54
   AMDRequireArrayDependency.js100%100%100%100%
   AMDRequireContextDependency.js100%100%100%100%
   AMDRequireDependenciesBlock.js100%100%100%100%
   AMDR

…truncated

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: webpack/webpack/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 633726c2-659f-4e6d-b535-a005f10c9078

📥 Commits

Reviewing files that changed from the base of the PR and between 050aa45 and 6eeb6d0.


⛔ Files ignored due to path filters (4)
  • test/configCases/chunks-order/cjs/__snapshots__/ConfigCacheTest.snap is excluded by !**/*.snap, !test/**/__snapshots__/**
  • test/configCases/chunks-order/cjs/__snapshots__/ConfigTest.snap is excluded by !**/*.snap, !test/**/__snapshots__/**
  • test/configCases/concatenate-modules/commonjs-wrapped-external-new-expression/__snapshots__/ConfigCacheTest.snap is excluded by !**/*.snap, !test/**/__snapshots__/**
  • test/configCases/concatenate-modules/commonjs-wrapped-external-new-expression/__snapshots__/ConfigTest.snap is excluded by !**/*.snap, !test/**/__snapshots__/**

📒 Files selected for processing (8)
  • .changeset/030-node-prefix-external-module-id.md
  • lib/css/syntax-parser.js
  • lib/externals/ExternalModule.js
  • test/configCases/externals/node-prefix-user-externals/index.js
  • test/configCases/externals/node-prefix-user-externals/webpack.config.js
  • test/configCases/node/output-module-external/import.js
  • test/configCases/node/prefix-in-runtime/index.js
  • test/unitCases/CssSyntax.unittest.js

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



📝 Walkthrough

Walkthrough

Core-module normalization no longer adds node: based on nodePrefixForCoreModules. The changes also update the nested at-rule owner lookup and add a CSS declaration-order test case.

Changes

Core module request normalization

Layer / File(s) Summary
Normalize core-module requests
lib/externals/ExternalModule.js, .changeset/030-node-prefix-external-module-id.md, test/configCases/externals/node-prefix-user-externals/*, test/configCases/node/output-module-external/import.js, test/configCases/node/prefix-in-runtime/index.js
Normalization no longer adds node: to unprefixed core-module requests because nodePrefixForCoreModules is enabled. The changeset and external tests reflect bare request expectations.

Nested at-rule lookup

Layer / File(s) Summary
Read nested at-rule owner name
lib/css/syntax-parser.js
The nested-group at-rule check uses _atKeywordOf(owner) instead of path.atKeyword(owner).

CSS declaration-order test coverage

Layer / File(s) Summary
Cover width and size substitution order
test/unitCases/CssSyntax.unittest.js
The regression cases add width and size declarations with substitutions and expect their authored order to remain.

Suggested labels: area: css


Priority: ⬆️ High

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 6eeb6

Core-module externals retain or gain prefixes according to target support, avoiding unsupported prefixed requests on older Node runtimes. No concrete merge-blocking behavior is established; proceed with normal CI validation.

Pre-merge checks | Passed 3 | Inconclusive 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check Inconclusive The title uses the required Conventional Commit format, uses the allowed type fix, and accurately describes the main external-module change. The branch prefix is not provided, so the required type-t… Provide the branch name or confirm that its prefix is fix.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Title check

Explanation

The title uses the required Conventional Commit format, uses the allowed type fix, and accurately describes the main external-module change. The branch prefix is not provided, so the required type-to-branch match cannot be verified.


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.20%. Comparing base (a3232d2) to head (6eeb6d0).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22593      +/-   ##
==========================================
+ Coverage   95.54%   96.20%   +0.65%     
==========================================
  Files         774      774              
  Lines      128230   128462     +232     
  Branches    42484    42560      +76     
==========================================
+ Hits       122514   123582    +1068     
+ Misses       5716     4880     -836     
Flag Coverage Δ
css-parsing 25.12% <0.00%> (-0.01%) ⬇️
html5lib 27.01% <0.00%> (+<0.01%) ⬆️
integration 82.44% <100.00%> (+0.05%) ⬆️
minify-corpora 79.49% <ø> (?)
syntax-equivalence 79.38% <100.00%> (+0.06%) ⬆️
test262 56.76% <0.00%> (?)
test262-parser 84.55% <ø> (?)
unit 75.26% <100.00%> (+0.06%) ⬆️

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.

@github-actions

Copy link
Copy Markdown
Contributor

Generated code size

Comparing base (a3232d2) to head (6eeb6d0). Merging this pull request changes the size of 594 asset(s) whose tests it leaves untouched, moves 13 asset(s) whose tests it edits too, adds 6 new asset(s) and deletes 1 asset(s).

Warning

The baseline is a3232d2, not 050aa45 — the main commit this run was merged with. Everything that landed on main in between is counted below and is not this pull request's.

What moved Tests Assets Gzip Raw Test edit
Changed, test untouched 347 594 🟢 ↓ -5.64 KiB 🟢 ↓ -13.72 KiB —
Changed, test edited 4 13 🟢 ↓ -16 B 🟢 ↓ -511 B 🔴 ↑ +58 B
New 3 6 ⚪ added +1.57 KiB ⚪ added +3.27 KiB —
Deleted 1 1 -522 B -1.20 KiB —
Unchanged — 7842 — — —

Read Changed, test untouched first: the test is byte-identical on both sides, so webpack generated the difference. Changed, test edited moved partly because the test did — Test edit is how many bytes the test gained, and a bundle that grew by less is not a regression. New and Deleted are whole files, not deltas — a new asset was created, not grown, so it reads gray (⚪ added) — and adding tests cannot bury a real change. Gzip decides, because that is what users download; raw is the tiebreak, and brotli and zstd are per asset below.

594 asset(s) changed size, test untouched, biggest 20 by raw or gzip change
Asset Before After Change Gzip (9) Brotli (11) Zstd (19)
🟢 ↓ asset-modules/url-module-analyzable bundle0.mjs 3.92 KiB 3.82 KiB -99 B (-2.47%) -36 B (-2.74%) -15 B (-1.33%) -37 B (-2.79%)
🟢 ↓ asset-modules/query-suffixes-user-override bundle0.js 5.87 KiB 5.77 KiB -99 B (-1.65%) -36 B (-1.86%) -31 B (-1.92%) -38 B (-1.98%)
🟢 ↓ asset-modules/query-suffixes bundle0.js 27.25 KiB 27.16 KiB -99 B (-0.35%) -31 B (-0.18%) -31 B (-0.18%) -33 B (-0.19%)
🟢 ↓ analyzable/library-module-shipping 1/bundle1.mjs 7.96 KiB 7.86 KiB -94 B (-1.15%) -26 B (-1.05%) -20 B (-0.92%) -25 B (-1.01%)
🟢 ↓ analyzable/library-module-shipping 0/bundle0.mjs 7.96 KiB 7.86 KiB -94 B (-1.15%) -26 B (-1.05%) -20 B (-0.92%) -25 B (-1.01%)
🟢 ↓ analyzable/circular-chunkhash-names bundle0.mjs 7.62 KiB 7.54 KiB -80 B (-1.03%) -24 B (-1.03%) -16 B (-0.79%) -24 B (-1.04%)
🟢 ↓ analyzable/content-named-single-runtime main.[hash].mjs 1.74 KiB 1.67 KiB -66 B (-3.71%) -25 B (-3.62%) -30 B (-5.05%) -27 B (-3.88%)
🟢 ↓ analyzable/chunk-import-shared-initial-chunk bundle0.mjs 1.93 KiB 1.87 KiB -66 B (-3.34%) -28 B (-3.73%) -28 B (-4.39%) -29 B (-3.81%)
🟢 ↓ analyzable/shared-runtime-base-uri bundle0.mjs 2.37 KiB 2.30 KiB -66 B (-2.72%) -26 B (-2.97%) -31 B (-4.17%) -25 B (-2.80%)
🟢 ↓ analyzable/shared-chunk-import main.mjs 2.56 KiB 2.50 KiB -66 B (-2.51%) -28 B (-2.98%) -33 B (-4.06%) -27 B (-2.87%)
🟢 ↓ analyzable/public-path-override-scope bundle0.mjs 3.18 KiB 3.12 KiB -66 B (-2.03%) -29 B (-2.61%) -34 B (-3.59%) -28 B (-2.51%)
🟢 ↓ analyzable/asset-import-baked-absolute bundle0.mjs 3.32 KiB 3.25 KiB -66 B (-1.94%) -23 B (-2.12%) -32 B (-3.43%) -26 B (-2.39%)
🟢 ↓ analyzable/asset-import-baked bundle0.mjs 3.39 KiB 3.32 KiB -66 B (-1.90%) -26 B (-2.36%) -29 B (-3.04%) -28 B (-2.52%)
🟢 ↓ analyzable/protocol-relative-base-uri bundle0.mjs 3.51 KiB 3.44 KiB -66 B (-1.84%) -28 B (-2.23%) -34 B (-3.15%) -28 B (-2.22%)
🟢 ↓ asset-modules/url-module-public-path bundle0.mjs 3.75 KiB 3.69 KiB -66 B (-1.72%) -27 B (-2.04%) -37 B (-3.29%) -27 B (-2.02%)
🟢 ↓ wasm/analyzable-served-both-ways main.mjs 3.80 KiB 3.73 KiB -66 B (-1.70%) -29 B (-2.31%) -27 B (-2.51%) -28 B (-2.23%)
🟢 ↓ output/public-path-assign-only 0/assign-only/main.mjs 3.96 KiB 3.90 KiB -66 B (-1.63%) -28 B (-2.11%) -20 B (-1.78%) -31 B (-2.34%)
🟢 ↓ html/path-outside-context-future-defaults bundle0.js 4.27 KiB 4.21 KiB -66 B (-1.51%) -29 B (-1.99%) +9 B (+0.76%) -29 B (-1.99%)
🟢 ↓ analyzable/asset-url-function-public-path 0/bundle0.mjs 4.32 KiB 4.26 KiB -66 B (-1.49%) -29 B (-1.93%) -21 B (-1.64%) -31 B (-2.05%)
🟢 ↓ analyzable/asset-url-function-public-path 1/bundle1.mjs 4.32 KiB 4.26 KiB -66 B (-1.49%) -29 B (-1.93%) -23 B (-1.80%) -29 B (-1.92%)
… 574 more, see the uploaded report
13 asset(s) changed size, test edited
Asset Before After Change Gzip (9) Brotli (11) Zstd (19) Test edit (per test)
🟢 ↓ node/output-module-external import.mjs 8.95 KiB 8.68 KiB -275 B (-3.00%) -16 B (-0.61%) -4 B (-0.18%) -14 B (-0.55%) -5 B
🟢 ↓ node/output-module-external require.mjs 8.07 KiB 7.81 KiB -270 B (-3.27%) -3 B (-0.12%) +13 B (+0.60%) +1 B (+0.04%) -5 B
🔴 ↑ css/minimize-transforms-off bundle0.css 1.34 KiB 1.45 KiB +109 B (+7.92%) +36 B (+4.95%) +22 B (+3.85%) +36 B (+4.87%) +118 B
🟢 ↓ externals/node-prefix-user-externals keep/bundle1.js 1.20 KiB 1.20 KiB -5 B (-0.41%) -11 B (-2.08%) -13 B (-2.84%) -12 B (-2.28%) -15 B
🟢 ↓ node/prefix-in-runtime 0/bundle0.mjs 378 B 368 B -10 B (-2.65%) -1 B (-0.39%) — — -40 B
🟢 ↓ node/prefix-in-runtime 4/bundle4.mjs 378 B 368 B -10 B (-2.65%) -1 B (-0.39%) — — -40 B
🟢 ↓ node/prefix-in-runtime 5/bundle5.mjs 378 B 368 B -10 B (-2.65%) -1 B (-0.39%) — — -40 B
🟢 ↓ node/prefix-in-runtime 2/bundle2.mjs 378 B 368 B -10 B (-2.65%) -1 B (-0.39%) — — -40 B
🟢 ↓ node/prefix-in-runtime 7/bundle7.js 606 B 596 B -10 B (-1.65%) -2 B (-0.53%) -1 B (-0.31%) -3 B (-0.81%) -40 B
🟢 ↓ externals/node-prefix-user-externals strip/bundle0.js 1.19 KiB 1.19 KiB -5 B (-0.41%) -10 B (-1.90%) -17 B (-3.76%) -14 B (-2.68%) -15 B
🟢 ↓ node/prefix-in-runtime 3/bundle3.mjs 368 B 363 B -5 B (-1.36%) -2 B (-0.79%) -2 B (-0.95%) -3 B (-1.26%) -40 B
🟢 ↓ node/prefix-in-runtime 1/bundle1.mjs 368 B 363 B -5 B (-1.36%) -2 B (-0.79%) -2 B (-0.95%) -3 B (-1.26%) -40 B
🟢 ↓ node/prefix-in-runtime 6/bundle6.mjs 368 B 363 B -5 B (-1.36%) -2 B (-0.79%) -2 B (-0.95%) -3 B (-1.26%) -40 B
6 asset(s) this pull request adds
Asset Raw Gzip (9) Brotli (11) Zstd (19)
⚪ added externals/node-prefix-user-externals keep-bare/bundle2.js 1.18 KiB 509 B 433 B 506 B
⚪ added optimization/minimize-arguments-parameter 0/bundle0.js 822 B 339 B 290 B 345 B
⚪ added optimization/minimize-arguments-parameter 1/bundle1.js 457 B 223 B 178 B 207 B
⚪ added optimization/minimize-arguments-parameter 2/bundle2.js 455 B 221 B 173 B 204 B
⚪ added css/minimize-is-namespace style.css 267 B 195 B 146 B 187 B
⚪ added css/minimize-is-namespace bundle0.js 132 B 122 B 90 B 107 B
1 asset(s) this pull request no longer emits
Asset Raw Gzip (9) Brotli (11) Zstd (19)
➖ externals/node-prefix-user-externals add/bundle2.js 1.20 KiB 522 B 445 B 522 B

No runtime that both runs build changed which runtime modules it carries.

1 runtime(s) this pull request adds or no longer builds
Runtime Modules
➕ css/minimize-is-namespace main 1

Built test/configCases with the defaults a user gets: 2209 test(s), 8455 asset(s), 99 emitted nothing.

@alexander-akait
alexander-akait merged commit 0027179 into main Oct 10, 2026
69 checks passed
@alexander-akait
alexander-akait deleted the fix/node-prefix-keep-external-spelling branch October 10, 2026 10:26
@codspeed

codspeed Bot commented Oct 10, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 44.67%

⚠️ 108 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

ℹ️ 29 benchmarks have no flame graph

The flamegraph could not be generated because too much time was spent in runtime internals, making the visualization not useful for performance analysis.

❌ 1 regressed benchmark
✅ 405 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory benchmark "wasm-modules-async", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 228 KB 412 KB -44.67%

Tip

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


Comparing fix/node-prefix-keep-external-spelling (6eeb6d0) with main (36df072)2

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (050aa45) during the generation of this report, so 36df072 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

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

Labels

area: css CSS support (lib/css)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant