-
Notifications
You must be signed in to change notification settings - Fork 16
Determine strategy to provide Babel-polyfill for older browsers #42
Comments
This is definitely something that should be managed by Roc and this package is a good place. We just need to do this correctly when adding this, a reason for us not adding it as of yet. What I mean with that we would optimally load polyfills on demand in clients that require them to avoid increasing the size in modern browsers. There are several strategies on how to solve this some of which are mentioned in this article https://philipwalton.com/articles/loading-polyfills-only-when-needed. We could probably using the knowledge that Roc have about the application only add the needed checks needed to polyfill what is needed by the specific application. On this topic we should also look into what we transpile using Babel and target the correct browsers, we can do this using https://github.com/babel/babel-preset-env potentially. |
Before we figure out a generic polyfill strategy for roc, what is the best way to include |
The current suggested way is the following.
|
This issue has been moved into the mono repository rocjs/extensions#21. |
Older browsers require the
babel-polyfill
https://babeljs.io/docs/usage/polyfill/ – do you think it's this package's responsibility to solve this issue?The text was updated successfully, but these errors were encountered: