fix: top-level await guard
This commit is contained in:
parent
2f93e42106
commit
abb140c889
|
@ -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}) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user