4 ms·
Yep, Babel is transpiling that script tag. This is a cool pattern, useful for testing and whatnot, but nothing new and not recommended for production. Another
by __ryan__ 5y ago
Yep, Babel is transpiling that script tag. This is a cool pattern, useful for testing and whatnot, but nothing new and not recommended for production.
Another example of this pattern is Paper.js & PaperScript [0]
[0] http://paperjs.org/tutorials/getting-started/paperscript-interoperability/ http://paperjs.org/tutorials/getting-started/paperscript-int...
- mokanfar 5y ago>not recommended for production. Rhetorical question: What percent of use cases is it not recommended for use in production?
- tehbeard 5y agoThe only use case babel in browser I can think of is either interactive tutorial/learning for end users on browser features or React JSX (to snuff out the whole getting a dev-env. setup), and interactive playgrounds like storybook.js to allow someone to compose a mockup, again without a git clone / do_x() / add / commit / push.