-
Notifications
You must be signed in to change notification settings - Fork 957
Closed
Labels
Description
[REQUIRED] Describe your environment
- Firebase SDK version: 9.13.0
- Firebase Product: auth
[REQUIRED] Describe the problem
@firebase/auth
includes selenium-webdriver
and tslib
as runtime dependencies
. This causes them to get pulled into production dependency bundles unnecessarily. These should probably be devDependencies
(I'm assuming they're used at build and test time?), unless there is something very strange going on that requires @firebase/auth
to parse typescript or use selenium at runtime. If there is a runtime dependency on selenium-webdriver
or tslib
, that is probably worth investigating too.
https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/package.json#L104
Steps to reproduce:
- Install
firebase
- Run
pnpm why selenium-webdriver
(or yarn/npm equivalent) - See that
selenium-webdriver
is included in the dependency (notdevDependency
) tree
dependencies:
firebase 9.13.0
├─┬ @firebase/auth 0.20.11
│ └── selenium-webdriver 4.5.0
└─┬ @firebase/auth-compat 0.2.24
├─┬ @firebase/auth 0.20.11
│ └── selenium-webdriver 4.5.0
└── selenium-webdriver 4.5.0
Simply moving tslib
and selenium-webdriver
to devDependencies
should fix this.