Skip to content

Fix peer dependency warnings#1382

Merged
outoftime merged 2 commits intopopcodeorg:masterfrom
outoftime:peer-warnings
Mar 4, 2018
Merged

Fix peer dependency warnings#1382
outoftime merged 2 commits intopopcodeorg:masterfrom
outoftime:peer-warnings

Conversation

@outoftime
Copy link
Copy Markdown
Contributor

Running yarn has generated a bunch of warnings about peer dependencies for a little while now, which isn’t a great look. This pull request fixes them:

  • Adds caniuse-lite as an explicit dependency to satisfy the peer dependency of autoprefixer
  • Switches to using a la carte Firebase packages for the components of Firebase that we actually use, and adds one other package, @firebase/app-types, as an explicit dependency to satisfy the peer dependency of the others

The latter change should hopefully result in a smaller bundle as well!

Mat Brown added 2 commits March 4, 2018 15:37
It’s a peer dependency of autoprefixer
Instead of pulling in the master Firebase package as a dependency, use a
la carte Firebase packages for the Firebase components that we actually
use—namely `@firebase/app` (the core), `@firebase/auth`, and
`@firebase/database`. Also add `@firebase/app-types` as a dependency to
satisfy the peer dependency of the aforementioned packages.

Just requires changing the imports in the `appFirebase` service to
target the individual packages, and everything seems to work just fine.
@outoftime outoftime merged commit 2aea002 into popcodeorg:master Mar 4, 2018
@outoftime outoftime deleted the peer-warnings branch March 4, 2018 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant