Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

vipulnsward
Copy link
Contributor

Fixes #4129

- 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)}
Copy link
Member

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)}
Copy link
Contributor Author

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
@vipulnsward
Copy link
Contributor Author

"I think we'll want to end up checking in the final file, we do now for React and JSXTransformer"

The babel browser file?
I had copied to _js since js is gitignored as well as babel ignores compiling that file.

Can we name the file babel-browser.min.js?

Renamed.
Also got rid of docs/js/JSXTransformer.js

@vipulnsward
Copy link
Contributor Author

Let me know, if there are any more changes expected here.

@zpao
Copy link
Member

zpao commented Jun 17, 2015

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.

@zpao
Copy link
Member

zpao commented Sep 26, 2015

finally got this in. Thanks again!

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

Successfully merging this pull request may close these issues.

3 participants