Skip to content

Commit

Permalink
fix: rollup treeshake is dump
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 13, 2023
1 parent bb9ac5b commit 2ce4edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function createDevServer(nitro: Nitro): NitroDevServer {
app.use(
eventHandler(async (event) => {
await reloadPromise;
const address = currentWorker?.address;
const address = currentWorker && currentWorker.address;
if (!address || (address.socketPath && !existsSync(address.socketPath))) {
return errorHandler(lastError, event);
}
Expand Down

0 comments on commit 2ce4edb

Please sign in to comment.