mirror of
https://github.com/koush/scrypted.git
synced 2026-03-05 02:41:59 +00:00
server: fixup es-eval
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"sourceMap": true,
|
||||
},
|
||||
"include": [
|
||||
"./es-eval.ts",
|
||||
"es-eval.mts",
|
||||
],
|
||||
"exclude": []
|
||||
}
|
||||
@@ -387,7 +387,7 @@ export function startPluginRemote(mainFilename: string, pluginId: string, peerSe
|
||||
|
||||
if (isModule) {
|
||||
process.env.SCRYPTED_SDK_ES_MODULE = __filename;
|
||||
const { eseval } = await import('../es/es-eval');
|
||||
const { eseval } = await import('../es/es-eval.mjs');
|
||||
const module = await eseval(mainNodeJsOnFilesystem);
|
||||
params.module.exports = module;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user