Cameron Martin created THRIFT-5811:
--------------------------------------

             Summary: Add ES module support to JS codegen
                 Key: THRIFT-5811
                 URL: https://issues.apache.org/jira/browse/THRIFT-5811
             Project: Thrift
          Issue Type: Improvement
          Components: Node.js - Compiler
    Affects Versions: 0.20.0
            Reporter: Cameron Martin


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|https://vitejs.dev/].

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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to