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

Babel 6 Update #64

Merged
merged 4 commits into from
Dec 9, 2015
Merged

Babel 6 Update #64

merged 4 commits into from
Dec 9, 2015

Conversation

justingreenberg
Copy link
Contributor

Babel 6

  • gaearon/babel-plugin-react-transform
  • update docs (and clean up ie. Fix readme using react 0.14 #70)
  • use new configuration syntax in .babelrc
  • update babel packages and related dependencies

@ghost
Copy link

ghost commented Nov 18, 2015

I tested this PR on my app and it worked like a charm. The app has a mix of createClass / extends React.Component based components and react-transform-hmr worked fine with this PR so those seem to work.

@TaopaiC
Copy link

TaopaiC commented Nov 18, 2015

I think it doesn't need babel-preset-stage-0 now since it doesn't use decorator.

@justingreenberg
Copy link
Contributor Author

@TaopaiC good catch—removed stage-0 preset and rebased PR

@jamiebuilds jamiebuilds mentioned this pull request Dec 8, 2015
@weblancaster
Copy link

@danmartinez101 I'm also testing on my end but I keep getting imports[1] for react-transform-catch-errors does not look like a React component I'm using webpack middleware on express dev env.

{
  presets: [
    'es2015',
    'stage-0',
    'react'
  ],
  "env": {
    "development": {
      "plugins": [
        ["react-transform", {
          "transforms": [{
            "transform": "react-transform-hmr",
            "imports": ["react"],
            "locals": ["module"]
          }, {
            "transform": "react-transform-catch-errors",
            "imports": ["react", "redbox-react"]
          }]
        }]
      ]
    }
  }
}

@vagusX
Copy link

vagusX commented Dec 9, 2015

babel-plugin-react-transform updated, how is it going now?

@weblancaster
Copy link

I tried this PR not the master (master is supposed to work but is "outdated") @justingreenberg but I tried testing putting the pieces together on https://github.com/isobar-idev/node-react-stack-kit though not on a index html page.. I might be doing something wrong I'm going to go back at it tomorrow morning.

Thanks

@jamiebuilds
Copy link
Collaborator

Okay I've published babel-plugin-react-transform@2.0.0-beta1 and created an example project: https://github.com/thejameskyle/babel-setup-react-transform

jamiebuilds added a commit that referenced this pull request Dec 9, 2015
@jamiebuilds jamiebuilds merged commit 621030f into gaearon:master Dec 9, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants