Skip to content

Remove webpack as a peerDependency for the webpack plugin #1311

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

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Remove webpack as a peerDependency for the webpack plugin #1311

merged 1 commit into from
Feb 1, 2021

Conversation

threepointone
Copy link
Contributor

This PR removes webpack as a peerDependency for @finos/perspective-webpack-plugin

IMO, a peer dependency (or dependency) should only be included if it's actually required by the source code. (For the same reason, file-loader and worker-loader should be included because they're implicitly required.) Keeping this peerDependency makes it so that the consuming package has to declare webpack as a dependency, even if they're only passing the plugin to a tool that transitively uses webpack.

This PR removes webpack as a peerDependency for `@finos/perspective-webpack-plugin`

A peer dependency (or dependency) should only be included if it's actually required by the source code. (For the same reason, `file-loader` and `worker-loader` _should_ be included because they're implicitly required.) Keeping this peerDependency makes it so that the consuming package has to declare webpack as a dependency, even if they're only passing the plugin to a tool that transitively uses webpack.
@finos finos deleted a comment from finos-cla-bot bot Feb 1, 2021
Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Fair point, and thanks for the clear explanation of the use case.

@texodus texodus merged commit ef1690e into finos:master Feb 1, 2021
@texodus texodus added internal Internal refactoring and code quality improvement JS labels Feb 1, 2021
@texodus texodus added this to the 0.6.1 milestone Feb 1, 2021
@texodus texodus added bug Concrete, reproducible bugs and removed internal Internal refactoring and code quality improvement labels Feb 1, 2021
@threepointone threepointone deleted the patch-1 branch February 1, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants