Skip to content

Babel 7 Umbrella #2391

Closed
Closed

Description

@gaearon

Want to start documenting things we need to do when Babel 7 is ready.

Activity

  1. added this to the milestone on May 27, 2017
  2. Timer commented on May 28, 2017

    @Timer
    Contributor

    We'll want to import babel-polyfill by default if we turn useBuiltIns to true.

  3. gaearon commented on May 28, 2017

    @gaearon
    ContributorAuthor

    Which features would depend on them? I just want to externalize helpers without bringing the whole core-js with them.

  4. Timer commented on May 28, 2017

    @Timer
    Contributor

    useBuiltIns transforms babel-polyfill into only the language features used in the app, babel-polyfill would become a single core-js import of Map if that's the only feature used.

  5. Timer commented on May 28, 2017

    @Timer
    Contributor

    To clarify, I made the suggestion to make the development experience nicer; not that we need it.

  6. gaearon commented on May 28, 2017

    @gaearon
    ContributorAuthor

    Hmm, that's not the part of useBuiltins I'm interested in. IMO trying to guess needed features by code is always lossy ([].includes) and we shouldn't attempt that.

    The thing I'm interested in is deduplicating Babel helpers like _createClass. It's possible today with helpers: true but this brings in core-js due to how Babel worked (babel/babel#4418). As I understand this is now fixed.

  7. Timer commented on May 28, 2017

    @Timer
    Contributor

    IMO trying to guess needed features by code is always lossy ([].includes) and we shouldn't attempt that.

    This works in Babel 7 from what I was told. As does many other really obscure cases:

    'abc'['inclu' + 'des']('a')
    

    I haven't actually tested this myself, but it would be sweet if it did.


    Unfortunately, I don't think we can opt-out of this behavior for end-users that end up requiring babel-polyfill. Is useBuiltins required as part of deduping these helpers?

  8. badsyntax commented on Nov 4, 2017

    @badsyntax

    This works in Babel 7 from what I was told. As does many other really obscure cases:

    I put together an example project showing how this works, by using the "useBuiltIns": "usage" option of @babel/env: https://github.com/badsyntax/babel-builtin-polyfills

  9. gaearon commented on Nov 15, 2017

    @gaearon
    ContributorAuthor

    Now might be a good time to start trying Babel 7 and looking out for issues.

  10. modified the milestones: , on Jan 8, 2018
  11. robertvansteen commented on Aug 28, 2018

    @robertvansteen
    Contributor

    https://babeljs.io/blog/2018/08/27/7.0.0 looks like the moment is finally there 💯

  12. RIP21 commented on Aug 28, 2018

    @RIP21

    I think that Babel 7 being in beta was the biggest blocker to release version 2.0.0.
    Any chances to make version 2.0.0 happened this September?
    I see there is a lot of tasks open, but can't they be postponed for future 2.x.x versions?

  13. modified the milestones: 2.0.x, 2.x on Sep 26, 2018
  14. locked and limited conversation to collaborators on Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions