Skip to content

Conversation

@zpao
Copy link
Member

@zpao zpao commented Sep 6, 2016

I missed that #5497 got closed and babel-standalone supports what I wanted, so we can do this now.

@Daniel15
Copy link
Member

Thanks! I've been meaning to update React to use babel-standalone in the examples. Thanks for working on it 😄

<script src="https://unpkg.com/react@{{site.react_version}}/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@{{site.react_version}}/dist/react-dom.js"></script>
<script src="https://unpkg.com/babel-[email protected]/browser.min.js"></script>
<script src="https://unpkg.com/babel-[email protected]/babel.min.js"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Babel-standalone is on CDNJS and I've seen better perf with CDNJS compared to unpkg (also it has more users so it's more likely to hit the cache). Maybe use CDNJS instead?

<script src="bower_components/react/react.js"></script>
<script src="bower_components/react/react-dom.js"></script>
<script src="https://unpkg.com/babel-[email protected]/browser.min.js"></script>
<script src="https://unpkg.com/babel-[email protected]/babel.min.js"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this one, you might want to use babel-standalone from Bower for consistency. Updating the install command to bower install --save react babel-standalone should work.

@Daniel15
Copy link
Member

Instead of using [email protected], you could use babel-standalone@6 to use the latest 6.x.x version if you like.

This was referenced Oct 4, 2016
@aweary
Copy link
Contributor

aweary commented Jan 26, 2017

Looks like this super out of date, and was addressed in #7868

@aweary aweary closed this Jan 26, 2017
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