[ 
https://issues.apache.org/jira/browse/THRIFT-5517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer updated THRIFT-5517:
-------------------------------
    Component/s: JavaScript - Compiler

> Do not generate callback-style methods in ES6 mode
> --------------------------------------------------
>
>                 Key: THRIFT-5517
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5517
>             Project: Thrift
>          Issue Type: Improvement
>          Components: JavaScript - Compiler
>    Affects Versions: 0.16.0
>            Reporter: Axel
>            Priority: Minor
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to