Hi, and thanks for a really awesome library - Really helps bridge the gap between Node and .NET.
Is it possible to add support for ES Modules/.mjs files?
Currently, trying to execute code in .mjs files fail, with:
Error [ERR_REQUIRE_ESM]: require() of ES Module .../server/entry-server.mjs not supported.
It's executed using:
await _nodeJsService.InvokeFromFileAsync<string>("../server/entry-server.mjs", "renderHead");
The whole Node system is slowly moving toward ES modules as the standard. In our case we're using Vite to bundle our server code, and it will by default output an .mjs file.
Hi, and thanks for a really awesome library - Really helps bridge the gap between Node and .NET.
Is it possible to add support for ES Modules/
.mjsfiles?Currently, trying to execute code in
.mjsfiles fail, with:It's executed using:
The whole Node system is slowly moving toward ES modules as the standard. In our case we're using Vite to bundle our server code, and it will by default output an
.mjsfile.