[ https://issues.apache.org/jira/browse/THRIFT-5811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer reopened THRIFT-5811: -------------------------------- > 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 > Assignee: Cameron Martin > Priority: Major > Fix For: 0.22.0 > > Time Spent: 1h 50m > Remaining Estimate: 0h > > 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)