-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add information about sending ES6 / ES5 to different browsers #280
Comments
Oooh nice thanks David, I think @o-t-w has looked at this, and I think Jon S or Anibe may have found some gotcha. |
Incorporating CTM as well it ended up looking like:
There is also the question of whether you want to use any crazy new javascript features that were released after modules, so you might still want to transpile just those new features for the module script... (Babel is pretty configurable as far as what language features you do and don't transpile) https://github.com/springernature/frontend-components-demo/blob/master/views/layout.hbs |
Some older versions of Safari/Firefox don't support 'nomodule' and so load both the module script and the nomodule, so we do a check (catchNoModuleSupport):
|
This is documentation about how we solve the following (as mentioned by @zanonnicola and @jon-stevens elsewhere):
If that seems like that is a good way forward, we should document it (and how to do it).
The text was updated successfully, but these errors were encountered: