-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Hello,
I would like to request the addition of ESM (instead of just commonjs, preferably both should be supported) support.
Currently for example the __filename
is used which is not supported inside ESM, additionally the exports require a full import and then destructing the object instead of only importing what's really needed.
Is there any plan to introduce such support in the near future?
Thank you
➖ ➖ ➖ ➖
➕ Another problem that I have spotted
const dir = path_1.default.join(__dirname, "plugins")
inside TestRunnerLoader
After bundling with esbuild this breaks simply because esbuild builds into one file and looking up files inside a directory like that does not work and anyway in the ESM world such approach is not recommended. I would propose a different option of a list of available plugins and import them natively with js instead of using custom file loading. Generally anything using __dirname
or similar should be replaced with a import
of some sort 😃
I would highly appreciate a fix for the above 🙇