Fast boot and upstream bower dependencies
See original GitHub issueQuestion
Are fastboot ember apps only able to use ember addons / components that are “fastboot ready”; in other words, do all ember addons have to custom support fastboot, or is there a way to expose global dependencies from the app using the addon?
Example
I am using ember-charts which depends on d3
and lodash
via bower. Everything works great without fastboot, but once I try to serve via fastboot I get Reference Errors
around d3
.
I attempted to whitelist via fastbootDependencies
and even installed d3
via npm to no avail.
Issue Analytics
- State:
- Created 8 years ago
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Ember Fastboot - Bootstrap's Javascript requires jQuery?
1 Answer 1 · ember-cli-fastboot #133 "Fast boot and upstream bower dependencies" · ember-cli-fastboot #98 "The Road to 1.0".
Read more >Day 1: Bower -- Manage Your Client Side Dependencies
Bower is a package manager for client side technologies. It can be used to search , install, uninstall web assets like JavaScript, HTML,...
Read more >Bower — a package manager for the web
This is known as a flat dependency graph and it helps reduce page load. §Install Bower. Bower is a command line utility. Install...
Read more >Ember Fastboot - Bootstrap's Javascript requires jQuery?
Coding example for the question Ember Fastboot - Bootstrap's Javascript requires ... ember-cli-fastboot #133 "Fast boot and upstream bower dependencies" ...
Read more >Combining Spring Boot with Bower dependencies
In this post I'll describe a technique we recently employed to split a site in half, then re-assemble for deployment. We'll start with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I understand the issue around importing modules that depend on browser APIs, but if these are bower deps you can prevent them from being included in the fastboot build by guarding around
app.import
.Back to shimming, I’d just worry about the cost of having to maintain shims for all the popular current and future libs.
@ewoutp Oops, sorry I missed this. See https://github.com/ember-fastboot/ember-cli-fastboot/issues/134#issuecomment-197540068 for how to selectively import addons.