You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5630f96
Browse filesBrowse the repository at this point in the historyBrowse files
fix(html): drop the JS asset an extracted HTML entry leaves behind
An `.html` file used as an entry emitted a JS chunk holding the page as a
string export. Nothing loads it: the emitted page references the
`<script src>` entries the parser split out of it, never the entry chunk.
The file was dead weight that duplicated the page's markup, one per page,
and it took the entrypoint's primary asset slot in stats and the manifest
while the page itself was listed as auxiliary.
The cleanup pass that already removes the chunk of an `output.html` wrapper
entry now also covers a page extracted from a real `.html` entry — the same
reasoning, and the same guard: a file another asset still references by URL
is kept. A data URL keeps its current meaning, counting as a wrapper only
for the `data:text/html` webpack writes itself, and an entry asked for by
name through `output.library` keeps its JS.
For comparison, a CSS entry has never emitted a JS asset: CssGenerator
exposes the JavaScript type only when a JS module imports the stylesheet.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NuWDbcF2jvq7q1r8aEY5V9
0 commit comments