We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540a4ee commit a9d5595Copy full SHA for a9d5595
.changeset/spotty-kings-pull.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/kit': patch
3
4
+
5
+fix: treat client/universal hooks as entrypoints for illegal server import detection
packages/kit/src/exports/vite/index.js
@@ -598,6 +598,9 @@ async function kit({ svelte_config }) {
598
if (node.universal) entrypoints.add(node.universal);
599
}
600
601
+ if (manifest_data.hooks.client) entrypoints.add(manifest_data.hooks.client);
602
+ if (manifest_data.hooks.universal) entrypoints.add(manifest_data.hooks.universal);
603
604
const normalized = normalize_id(id, normalized_lib, normalized_cwd);
605
const chain = [normalized];
606
0 commit comments