Add option to create ESM module adapter and maybe hide it in expert options and make it default.
An example for working ESM module with compact support is webui, see here
It will prevent devs running into issues with dependencies being converted to ESM.