Skip to content

Commit

Permalink
set optimizeDeps: [] (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris authored Mar 29, 2021
1 parent 56f3709 commit 7f58512
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-olives-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Prevent Vite prebundling from crashing on startup
4 changes: 4 additions & 0 deletions packages/kit/src/core/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ class Watcher extends EventEmitter {
server: {
...user_config.server,
middlewareMode: true
},
optimizeDeps: {
...user_config.optimizeDeps,
entries: []
}
});

Expand Down

0 comments on commit 7f58512

Please sign in to comment.