DAML codegen js ESM build?

Is there a way to use the daml codegen js command to generate an ESM build? I am having issues using the generated libraries with the Vite build tool because it is a commons library.

At the moment, you’re stuck with commonjs. I’ve opened a feature request ESM support in JS Codegen · Issue #13615 · digital-asset/daml · GitHub