From 8095fc7dfd5c90cb243419e7b16f8ab11be1f08e Mon Sep 17 00:00:00 2001 From: Brenley Dueck Date: Mon, 13 Jul 2026 21:24:29 -0500 Subject: [PATCH] fix downstream lazy entry classification --- .changeset/clean-lazy-entries.md | 5 +++++ src/index.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/clean-lazy-entries.md diff --git a/.changeset/clean-lazy-entries.md b/.changeset/clean-lazy-entries.md new file mode 100644 index 0000000..e69a431 --- /dev/null +++ b/.changeset/clean-lazy-entries.md @@ -0,0 +1,5 @@ +--- +'vite-plugin-solid': patch +--- + +Reclassify emitted lazy facade chunks as dynamic entries in the raw output bundle so downstream plugins do not mistake them for application entries. diff --git a/src/index.ts b/src/index.ts index afa486b..4e38b9f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -487,6 +487,10 @@ export default function solidPlugin(options: Partial = {}): Plugin { } }, + generateBundle(_options, bundle) { + normalizeEmittedLazyEntries(bundle); + }, + load(id) { if (id === runtimePublicPath) return runtimeCode; if (id === RESOLVED_VIRTUAL_MANIFEST_ID) {