Skip to content

Commit d80963d

Browse files
Merge pull request #77 from white-axe/core-name-hyphen
Fix loading of cores with a hyphen in the core name
2 parents e2ec099 + d172db3 commit d80963d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libs/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function isEsmScript(js: string) {
7979

8080
async function patchCoreJs({ js, name }: { js: ResolvableFile; name: string }) {
8181
let jsContent = await js.getText()
82+
name = name.replaceAll('-', '_')
8283

8384
if (isGlobalScript(jsContent)) {
8485
jsContent = `export function getEmscripten({ Module }) {

0 commit comments

Comments
 (0)