Comments (4)
By "no runtime" it just means that you don't need to include a 80KB blob as with Traceur etc. Basically instead of having a very heavy runtime/polyfill 6to5 will insert lightweight helpers.
Relevant section from compare.
Sometimes there are little inline functions that 6to5 needs. These are placed at the top of your file much like coffee-script does. If these bother you then you can use the optional runtime. We promise that these inline functions will never be significant and will always be used as little as possible.
These helper functions are only really excessive in the case of classes. It's due to needing to be 100% spec compliant. You can alternatively use loose mode that has some caveats but outputs significantly reduced code.
from website.
I feel like I dodged the question a bit but in the context of "no runtime" it refers to the inclusion of an external script in order for your transpiled code to work.
from website.
Thanks for the quick response @sebmck, I really appreciate it :)
I've never used Traceur before so I didn't know that it had a heavy runtime like that. I'm considering trying out 6to5 rather than Facebook's JSXTransformer/jstransform as 6to5 is more complete with its ES6 features.
I feel like I dodged the question a bit but in the context of "no runtime" it refers to the inclusion of an external script in order for your transpiled code to work.
Your answer totally made sense to me. However I think it'd be good to change the site from "no runtime" to "no external scripts" or something like that to clarify it for n00bs like me. I'm used to "runtime" referring to a VM or something similar, rather than just meaning an external chunk of code.
from website.
I think it'd be good to change the site from "no runtime" to "no external scripts" or something like that to clarify it for n00bs like me. I'm used to "runtime" referring to a VM or something similar, rather than just meaning an external chunk of code.
Ah yeah that's true. The site currently needs some work done on copytext as there have been some changes lately that have made it a bit flaky. I'm not very used to writing technical documentation so I have difficulty simplifying concepts, definently hope to fix it up soon. Thanks for bringing it to my attention though!
from website.
Related Issues (20)
- [Bug]: link to @babel/standalone documentation gives 404 HOT 3
- A React example in docs is outdated HOT 1
- Image not Visible HOT 2
- bundle.run 502 bad gateway & Plugins cound not be loaded HOT 7
- Consider replacing the word „blacklisting” HOT 3
- Dead anchor link at https://babeljs.io/docs/en/options#ineffective-browserslist-queries HOT 2
- Wrong file mention HOT 1
- Unable to use decorators in repl HOT 2
- "Built-ins" throws on REPL HOT 5
- [Bug]: Documentation for Rails is for Rails 6, but Rails is on Rails 7 HOT 7
- doc index page, jsx example has syntax error HOT 2
- https://babeljs.io/versions is out of date HOT 1
- The repl ("Try it out") feature on the website could really use a reset button HOT 1
- Configure redirects from `/en/` to `/` HOT 2
- [Bug]: @babel/plugin-proposal-dynamic-import docs 404 HOT 2
- Update docs to include the description of what `legacy` actually does for `@babel/plugin-proposal-decorators` HOT 3
- Broken links HOT 7
- Website HOT 1
- [Bug]: Need to improve documentation for babel-plugin-proposal-decorators HOT 2
- How to get in touch regarding a security concern HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.