Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

How to update .babelrc for babel 6.x #57

Closed
leecade opened this issue Oct 30, 2015 · 7 comments
Closed

How to update .babelrc for babel 6.x #57

leecade opened this issue Oct 30, 2015 · 7 comments

Comments

@leecade
Copy link

leecade commented Oct 30, 2015

{
  "stage": 0,
  "env": {
    "development": {
      "plugins": ["react-transform"],
      "extra": {
        "react-transform": {
          "transforms": [{
            "transform": "react-transform-hmr",
            "imports": ["react"],
            "locals": ["module"]
          }, {
            "transform": "react-transform-catch-errors",
            "imports": ["react", "redbox-react"]
          }]
        }
      }
    }
  }
}
@diego-toro
Copy link

The stage looks like require a new attribute "presets" babel/babel#2626
but the actual "extra" attribute don't know the new equivalent.

@leecade
Copy link
Author

leecade commented Oct 31, 2015

@IngenieroLata yeah THe extra attr not inclued in babel 6.x documents.

@diego-toro
Copy link

Here are the new options, http://babeljs.io/docs/usage/options/ also the release have changed the plugin API, so it also will require an update too, http://babeljs.io/blog/2015/10/29/6.0.0/

@gaearon
Copy link
Owner

gaearon commented Oct 31, 2015

@alexbeletsky
Copy link

I've started to upgrage the boilerplate to Babel 6 here - alexbeletsky/react-transform-boilerplate/commit/e0701bc, but realized the dependency is actually to gaearon/babel-plugin-react-transform.

I'd really like to make it happen and would like to help.

@gaearon
Copy link
Owner

gaearon commented Nov 12, 2015

As said above please refer to the linked issue.

@gaearon
Copy link
Owner

gaearon commented Dec 24, 2015

React Transform 2.0 was released with support for Babel 6.

@gaearon gaearon closed this as completed Dec 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants