Skip to content

Commit

Permalink
fix: only use the httpServer if it exists (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancharles authored Dec 12, 2023
1 parent ebe613f commit aede4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function webExtension(
configureServer(server) {
server.middlewares.use(viteClientModifier);

server.httpServer!.once("listening", () => {
server.httpServer?.once("listening", () => {
manifestParser.setDevServer(server);
manifestParser.writeDevBuild(server.config.server.port!);
});
Expand Down

0 comments on commit aede4fa

Please sign in to comment.