-
Notifications
You must be signed in to change notification settings - Fork 843
Remove babel-polyfill from peerDependencies #535
Comments
Yes, I was thinking of how to build this with two versions -- one with the polyfill and one without. I'll see what I can do. |
So this is the PR that added it: #166 So should we have it or not? // @kristofdegrave |
@fttriquet any update? |
Sorry for the delay, nothing more on my side, having a specific version without that dependency would do the trick for us. |
As I see it, you might need this peerDependency... it depends on what and how you deploy your app. |
It could be an optional dependency ? |
Yes, depending on how you use/package/depend on oidc-client. If you use it as a ES6 module or use the UMD in ~/lib and run in an older browser then you need to have the polyfill in there somehow. That was the point of the PR from @kristofdegrave, I believe. |
I see what you mean, but it seems to be quite a specific case their, I would say it's up to the client to manage that part ? Kevin's proposition would solve this (without having to do several builds), and add en entry in the readme about polyfill. |
@brockallen The PR of @kristofdegrave add it to Putting it inside this here should solve the original problem of @fttriquet and won't break because |
Ah I wasn't aware of the dedicated optional dependency config (which explains why I ignored the mention of it above). That sounds like the right place. Thanks |
Done, thanks for helping me thru that! |
Thx 👍 |
Great news, thank you |
#Can babel-polyfill be removed from peerDependencies ?
In our app we do not need that dependency to use oidc client, but removing it from our dependencies will cause the unmet peer dependency warning.
cc @davinkevin
The text was updated successfully, but these errors were encountered: