Imports like `import {InMemoryCache} from 'apollo-cache-inmemory';` didn’t work. We ran into this problem only when we wanted to adopt apollo 2.0 and ember-apollo-client was still on 1.0. I ended up creating this addonhttps://www.npmjs.com/package/ember-cli-webpack-imports …
Maybe we can see about helping @charles_demers update his addon to automatically find the appropriate packages?
-
-
What he has there should actually Just Work™… once you have the stuff listed in your `ember-cli-build.js`. This is one reason I’m really excited about the Packagers stuff currently in progress for Ember CLI: it should make this kind of thing less bespoke.
-
It seems annoying to have to list it when you already said the same thing in your app via package.json + imports. Shouldn't be too hard to write a function that infers the right packages to add, right?
-
If we get “import from npm” working in the general case, TS consumers get everything they need for free 9 times out of 10. (Props to the
@typescriptlang team for making that true.)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
