Skip to content

Commit

Permalink
fix: fix core loading
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Oct 8, 2023
1 parent f1a018f commit 9790327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ export class Emulator {
if (!jsBlobUrl) {
return
}
const { getEmscripten } = await (() => {
const { getEmscripten } = await (async () => {
try {
return import(/* @vite-ignore */ /* webpackIgnore: true */ jsBlobUrl)
return await import(/* @vite-ignore */ /* webpackIgnore: true */ jsBlobUrl)
} catch {
// a dirty hack for using with SystemJS, for example, in StackBlitz
// eslint-disable-next-line no-eval
return eval('import(jsBlobUrl)')
return await eval('import(jsBlobUrl)')
}
})()
URL.revokeObjectURL(jsBlobUrl)
Expand Down
2 changes: 2 additions & 0 deletions src/nostalgist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function baseName(url: string) {
}

export class Nostalgist {
static Nostalgist: Nostalgist

private static globalOptions = getDefaultOptions()

private options: NostalgistOptions
Expand Down

0 comments on commit 9790327

Please sign in to comment.