Skip to content

Adds React-Transform #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2015
Merged

Adds React-Transform #36

merged 2 commits into from
Sep 10, 2015

Conversation

AdamBrodzinski
Copy link
Collaborator

Adds the new react-transform hot-loader which replaces react-hot-loader. This is essentially react-hot-loader 2.0 but more plugable.

No transform is made when node env is set to production.

The 2nd commit adds an error reporting screen like react-native, this isn't required but I thought it was a nice touch, shown at the end of the following gif.

687474703a2f2f692e696d6775722e636f6d2f416847593238542e676966

Uses the new react-transform for hot-reloading:
https://github.com/gaearon/babel-plugin-react-transform

Note, transform does nothing when `process.env.NODE_ENV` is set to
`’production’`.

- removes react-hot-loader
- moves es stage settings to .babelrc
- adds react-transform settings to .babelrc
makes errors very nice to deal with, shows a red error container
over your app window, much like React native.

https://github.com/gaearon/react-transform-catch-errors
https://github.com/KeywordBrain/redbox-react
@AdamBrodzinski AdamBrodzinski mentioned this pull request Sep 10, 2015
4 tasks
jedwards1211 added a commit that referenced this pull request Sep 10, 2015
@jedwards1211 jedwards1211 merged commit 42df70e into jedwards1211:master Sep 10, 2015
@jedwards1211
Copy link
Owner

hell yeah, I've been looking forward to this stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants