-
Notifications
You must be signed in to change notification settings - Fork 87
Ember objects detected as react components #81
Comments
I'm guessing this does not do what we want? Also, I'm not really familiar with developing babel plugins but if it were possible to inspect the prototype of an object it would be quite trivial to identify react components no? |
I don’t think we use that function. babel-plugin-react-transform/src/index.js Lines 5 to 9 in 63cafc9
|
Or, rather, the problem is most likely that these two lines should end with babel-plugin-react-transform/src/index.js Line 77 in 63cafc9
babel-plugin-react-transform/src/index.js Line 122 in 63cafc9
Please feel free to submit a fix, add tests for it, and I’ll be happy to merge. |
Closing as duplicate of #84. (This one is earlier but the other one describes the problem more accurately). |
Should be fixed in 2.0.1. |
react-transform seems to mistake ember objects with
render
method as react components. A testcase with few examples of typical syntax. Changing the method name to_render
'fixes' the test. mattijauhiainen@dbfbf5dThe text was updated successfully, but these errors were encountered: