Skip to content

Commit

Permalink
fix: entries type error
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Feb 18, 2025
1 parent d44c9e3 commit 4f30877
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-wolves-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"domco": patch
---

fix: TypeError for undefined entries occuring on first dev run
4 changes: 4 additions & 0 deletions packages/domco/src/plugin/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export const configPlugin = async (
target: adapter?.target,
noExternal: build ? adapter?.noExternal : undefined,
},
optimizeDeps: {
// fixes TypeError when this is left undefined
entries: [],
},
build: {
manifest: !isSsrBuild,
target: "es2022",
Expand Down

0 comments on commit 4f30877

Please sign in to comment.