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

Do not generate callback-style methods in ES6 mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.16.0
    • None
    • JavaScript - Compiler
    • None

    Description

      Currently, when generating a javascript API, both promise-style functions and callback-style functions are generated. An application will likely be using only one of them and when the app is using ES6, it will be Promises. Do not generate callback-style methods in ES6 mode, as it approximately doubles the bundle size.

       

      The actual changes in the generator are rather simple, we are willing to work on this if we get some feedback that other people think this is a good idea.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jäger Axel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: