Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 3, 2024
1 parent 838a9c1 commit d31b4e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/waku/src/lib/handlers/dev-worker-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const getWorker = () => {
: ['--experimental-loader', 'waku/node-loader']),
'--conditions',
'react-server',
'workerd',
],
env: {
__WAKU_PRIVATE_ENV__: JSON.stringify(
Expand Down
10 changes: 5 additions & 5 deletions packages/waku/src/lib/handlers/handler-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export function createHandler<
},
server: { middlewareMode: true },
});
const viteServer = await createViteServer(mergedViteConfig);
registerReloadCallback((type) => viteServer.ws.send({ type }));
registerImportCallback((source) => hotImport(viteServer, source));
registerModuleCallback((result) => moduleImport(viteServer, result));
return viteServer;
const vite = await createViteServer(mergedViteConfig);
registerReloadCallback((type) => vite.ws.send({ type }));
registerImportCallback((source) => hotImport(vite, source));
registerModuleCallback((result) => moduleImport(vite, result));
return vite;
});

const entries = Promise.all([configPromise, vitePromise]).then(
Expand Down

0 comments on commit d31b4e2

Please sign in to comment.