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) {