Fix requires
This commit is contained in:
parent
9ed6502681
commit
0902854bb0
|
@ -85,7 +85,7 @@ export class IsolatedVM implements VM {
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const injectedRequire = `const require=function req(val) {
|
const injectedRequire = `require=function req(val) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case "url": return ${urlModule};
|
case "url": return ${urlModule};
|
||||||
case "querystring": return ${querystringModule};
|
case "querystring": return ${querystringModule};
|
||||||
|
|
Loading…
Reference in New Issue