I want to use Chalk 5 in Haxe but I can’t because it’s ESM. (that makes me a sad panda )
For dynamic imports there is js.Lib.dynamicImport
, for the rest see [js] ESM import syntax support · Issue #10615 · HaxeFoundation/haxe · GitHub (macro based solution in the discussion).