You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have the option enabled in the browser transform, and we export a function there that takes an option (for use with react-rails, et al). But we didn't make it possible to pass options from your <script type="text/jsx"> blocks. Let's do it.
Since there are no JS data types in html, let's just do an JSON.stringifyed data-options attribute.
There's only the single option right now, so <script type="text/jsx" data-options="{\"harmony\": true}" is all we need to support. Other options can be added easily if they come up.
The text was updated successfully, but these errors were encountered:
Add harmony transform support in browser
Fixes#1420. Moved some code around in the merge to account for more
changes in the transform code.
Conflicts:
vendor/browser-transforms.js
We already have the option enabled in the browser transform, and we export a function there that takes an option (for use with react-rails, et al). But we didn't make it possible to pass options from your
<script type="text/jsx">
blocks. Let's do it.Since there are no JS data types in html, let's just do an
JSON.stringify
eddata-options
attribute.There's only the single option right now, so
<script type="text/jsx" data-options="{\"harmony\": true}"
is all we need to support. Other options can be added easily if they come up.The text was updated successfully, but these errors were encountered: