-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@storybook/angular shouldn't depend on zone.js #4641
Comments
@igor-dv @storybook/angular does not depend on it. Wasn't it core or something? We already had a discussion about zone.js |
Sorry, re-read my description and realized it was very odd/poorly written 😅updated. |
It's used in polyfills Do we really need these polyfills, though ? |
Well, this time zone.js isn't a dependency of a dependency (like webpack is just a dep of angular core). zone.js is a direct dep of n angular app - maybe we can put zone.js as peer dep and dev dep for development this time? |
Yep. It should work |
Peer dependency makes sense. The way I see it, Storybook should be pulling the version of zone.js already being used in the host Angular project anyway, unless there's a specific task Storybook is using zone.js for that differs from the rest of the project. |
Wanna PR this ? |
For sure. Opened! |
Describe the bug
Currently, @storybook/angular lists zone.js within its dependencies; however, (as far as I can tell) in practice @storybook/angular doesn't actually depend on it. Of course, Angular does but perhaps it's worth removing it as a @storybook/angular dependency to avoid conflicts.
To Reproduce
See https://github.com/storybooks/storybook/blob/v4.0.0/app/angular/package.json#L44.
Expected behavior
@storybook/angular shouldn't depend on zone.js if it doesn't use it.
Screenshots
N/A
Code snippets
N/A
System:
Additional context
N/A
The text was updated successfully, but these errors were encountered: