Skip to content

Commit e2a061a

Browse files
committed
Fix module require, update wasmoon
1 parent f79311b commit e2a061a

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

package-lock.json

+7-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "demoon",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Lua + Node",
55
"main": "src/index.js",
66
"bin": {
@@ -13,6 +13,6 @@
1313
"lua"
1414
],
1515
"dependencies": {
16-
"wasmoon": "1.7.1"
16+
"wasmoon": "1.8.2"
1717
}
1818
}

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const start = async (entryFile) => {
2323
modulename = path.resolve(metaDirectory, '..', modulename)
2424
}
2525

26-
return require(modulename)
26+
return module.require(modulename);
2727
})
2828

2929
try {

0 commit comments

Comments
 (0)