Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5811

Add ES module support to JS codegen

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.20.0
    • None
    • Node.js - Compiler
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cameron-martin Cameron Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: