Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.20.0
-
None
-
None
Description
The JS code generator can only output in CommonJS format. This causes problems with bundlers that only support CommonJS in node_modules, such as Vite.
This is a proposal to add a new flag, esm, to the JS code generator to output ES modules, rather than CommonJS. This will only be valid if the node flag is also set.