Skip to content

Commit

Permalink
fix: add entry for vite prebundling scanner (#3169)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 1, 2022
1 parent 5b47013 commit fc6e5e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-pets-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Fix dev prebundling scanner
7 changes: 7 additions & 0 deletions packages/kit/src/core/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ export async function dev({ cwd, port, host, https, config }) {
$lib: config.kit.files.lib
}
},
build: {
rollupOptions: {
// Vite dependency crawler needs an explicit JS entry point
// eventhough server otherwise works without it
input: path.resolve(`${output}/runtime/internal/start.js`)
}
},
plugins: [
svelte({
extensions: config.extensions,
Expand Down

0 comments on commit fc6e5e1

Please sign in to comment.