Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/DAML codegen js ESM build?Forum ↗

DAML codegen js ESM build?

App Development2 posts268 viewsLast activity Apr 2022
MA
Mark_BroadheadOP
Apr 2022

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.

CO
cocreature
Apr 2022

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

← Back to Discussions