server: another attempt at node/esmodule interop with tsc

This commit is contained in:
Koushik Dutta
2025-03-12 09:32:20 -07:00
parent 4e653a9942
commit 9c2ea7d2bc
2 changed files with 3 additions and 2 deletions

View File

@@ -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.js');
const module = await eseval(mainNodeJsOnFilesystem);
params.module.exports = module;
}