What's the difference between babel-preset-stage-0, babel-preset-stage-1 etc?

后端 未结 5 1537
北海茫月
北海茫月 2020-12-07 13:47

My question is : What\'s the difference between babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2 and babel-preset-

5条回答
  •  清歌不尽
    2020-12-07 14:13

    As mostly elaborated by other answers. Stage 4 is most Stable and Stage 0, the most dangerous. Here is a bit of a breakdown at a high level for the 5 stages from the previous answers and the documentation. I'm adding this because when I came to this I was expecting a more high-level break down of what each stage is:


    Stage 4: Finished

    Ready for inclusion in ECMAScript Standard, has passed testing and will be part of the next revision


    Stage 3: Candidate

    Includes a full spec text and includes plugins that have mostly been tested and provided with feedback. Solution is complete and all further changes are based on implementation experience.


    Stage 2: Draft

    Further support for plugins completed as much as possible. Requirements for these are met mostly with only incremental changes on the way. Semantics and api is expected to be complete. It will most likely become part of the spec.


    Stage 1: Proposal A concept that has been discovered and selected to be examined at this phase mostly poly-fills and demos are expected.


    Stage 0: Strawman This name made me chuckle according to the TC-39 it kind of doesn't have any sort of bound but given the context it is the category for concepts that have not been selected to be followed up on or examined.

    Each level is inclusive whereas 4 includes 3 includes 2 and so on... I hope that this summation helps someone in the future.

提交回复
热议问题