mirror of
https://github.com/koush/scrypted.git
synced 2026-03-03 17:52:02 +00:00
server: fixup es-eval
This commit is contained in:
@@ -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