mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +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;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
{ "path": "./src/es" },
|
||||
],
|
||||
"exclude": [
|
||||
"src/es/es-eval.ts"
|
||||
"src/es/es-eval.mts"
|
||||
],
|
||||
"include": [
|
||||
"src/**/*",
|
||||
|
||||
Reference in New Issue
Block a user