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
In-browser JSX translation broken with 7.9 -> 7.10 upgrade. #11621
Comments
Hey @daniel-s! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
This might be related to this CI failure: https://github.com/babel/babel/runs/710737539. It looks like other babel modules for version 7.10.0 successfully published, but if any version of |
Must be related to #11466, if you look at the history of standalone? https://github.com/babel/babel/commits/master/packages/babel-standalone cc @dfabulich if have any ideas! |
Ok looks like I guess in this case, the workaround for 7.10 babel/standalone would be to define a |
@hzoo I would like to fix this issue. |
The fix is ready! Sorry everybody! |
@dfabulich Ah, you beat me to it. Let me close my PR. Thanks for the quick fix! |
Hey guys...our builds are breaking. Any ETA on release? |
Later today |
edit by @hzoo:
Workaround can be (until 7.10.1 patch is out)
Bug Report
Current behavior
In browser JSX translation does not work for Babel 7.10.0.
A script tag in HTML like the following works fine.
<script src="normal_script.js"></script>A tag like this does not work:
<script src="react_script.jsr" type="text/babel"></script>By does not work I mean that no Javascript in that file will execute. Not even simple JS that does not require any translation. For example, if react_script.jsr contained only this line:
console.log("hi
world");it would fail to execute.
This issue is remedied back to normal if following change is made to the HTML.
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>changed to
<script src="https://unpkg.com/@babel/standalone@7.9.0/babel.min.js"></script>Expected behavior
The above not to break as described.
Environment
The text was updated successfully, but these errors were encountered: