Skip to content

Commit

Permalink
fix: catch crash in dev server
Browse files Browse the repository at this point in the history
Fixes #1297.
Catch exception in `findEntrypoints` when reloading changed files in dev server.
  • Loading branch information
royra committed Feb 16, 2025
1 parent 44dab37 commit e9b6600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wxt/src/core/create-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ function createFileReloader(server: WxtDevServer) {
.join(', ')}`,
);

// Rebuild entrypoints on change
const allEntrypoints = await findEntrypoints();
try {
// Rebuild entrypoints on change
const allEntrypoints = await findEntrypoints();
const { output: newOutput } = await rebuild(
allEntrypoints,
// TODO: this excludes new entrypoints, so they're not built until the dev command is restarted
Expand Down

0 comments on commit e9b6600

Please sign in to comment.