fix: top-level await guard

This commit is contained in:
cha0s 2024-06-18 04:36:32 -05:00
parent 2f93e42106
commit abb140c889

View File

@ -80,7 +80,9 @@ async function remakeServer(Engine) {
createOnConnect(await createEngine(Engine));
}
await remakeServer(Engine);
(async () => {
await remakeServer(Engine);
})();
if (import.meta.hot) {
import.meta.hot.accept('./engine/engine.js', async ({default: Engine}) => {