Skip to content

Commit fc6e5e1

Browse files
authored
fix: add entry for vite prebundling scanner (#3169)
1 parent 5b47013 commit fc6e5e1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/quick-pets-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
Fix dev prebundling scanner

packages/kit/src/core/dev/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ export async function dev({ cwd, port, host, https, config }) {
6161
$lib: config.kit.files.lib
6262
}
6363
},
64+
build: {
65+
rollupOptions: {
66+
// Vite dependency crawler needs an explicit JS entry point
67+
// eventhough server otherwise works without it
68+
input: path.resolve(`${output}/runtime/internal/start.js`)
69+
}
70+
},
6471
plugins: [
6572
svelte({
6673
extensions: config.extensions,

0 commit comments

Comments
 (0)