-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Replace JSXTransformer with babel/browser #4131
Conversation
- Added import of babel browser plugin to transform JSX code - Removed occurrences of JSXTransformer from all places - Fixed jsx-compiler and live_editor to start using babel transform - Added rake task to start copying latest babel plugin for compilation
render: function() { | ||
return ( | ||
<div> | ||
<ReactPlayground | ||
codeText={HELLO_COMPONENT} | ||
renderCode={true} | ||
transformer={transformer.bind(null, this.state.harmony)} | ||
transformer={transformer.bind(null)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need to bind
this (no this
unsed in transformer
)
- Get rid of transform function from jsx compiler and rely on babel instead
render: function() { | ||
return ( | ||
<div> | ||
<ReactPlayground | ||
codeText={HELLO_COMPONENT} | ||
renderCode={true} | ||
transformer={transformer.bind(null, this.state.harmony)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got rid of it altogether.
- Get rid of browser.min.js checked in _js - Start copying brower.min.js for babel to js/babel-browser.min.js - Get rid of JSXTransformer from js file
The babel browser file?
Renamed. |
Let me know, if there are any more changes expected here. |
Thanks! I think this should be good - going to try to land this and the other deprecation pieces close together in case we need to back out. |
finally got this in. Thanks again! |
Fixes #4129