Skip to content

Make Babel major version configurable #4437

@idibidiart

Description

@idibidiart

Given the following issues popped up in Babel 6:

  1. Decorators cannot be used with RN 0.16..0-rc
  2. Can't export default class that extends base class

The first one being a serious issue as a lot of RN projects out there rely on @autoBind decorator (and having to replace with the ugliness that is .bind(this) everywhere is just too much to ask for given that a fix in is the works)

So, I'm wondering if it would be wise to allow the version of Babel used by RN to be configurable (maybe within the range of one major version number e.g. 5.x to 6.x)

Activity

ide

ide commented on Nov 30, 2015

@ide
Contributor

I don't think the Babel version will be configurable because Facebook's infra has already moved on and it's like steering a big ship. Babel touches too many things for it to simply be a matter of changing the version number in package.json.

The decorators are a big issue. I'm going to work on it myself since the ecosystem needs something out there, but would appreciate help from someone who's written Babel plugins before.

facebook-github-bot

facebook-github-bot commented on Nov 30, 2015

@facebook-github-bot
Contributor

Hey idibidiart, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!
idibidiart

idibidiart commented on Nov 30, 2015

@idibidiart
Author

@sebmck @loganfsmyth FYI

That would be great @ide

Will be posting all future feature requests to ProductPains.

locked as resolved and limited conversation to collaborators on Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ide@idibidiart@facebook-github-bot@react-native-bot

        Issue actions

          Make Babel major version configurable · Issue #4437 · facebook/react-native