Closed alvrs closed 11 months ago
Hi @alvrs, thanks for this (and sorry for taking so long to respond). I gave this a try locally but this is not working, even after some modifications. I think the reason is that the generated antlr code uses some dynamic requires that are not supported by esbuild.
I'm not super sure what to do about this. Maybe we should only use esbuild for the browser build, and just tsc to generate the cjs and esm builds? I'm not sure. For the time being, I opened this issue about it so we can discuss it further there.
exports
to be able to use this package as esm package (based on #83)