fix(v2): Add missing dependencies to packages #3355
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This PR adds missing dependencies to relevant package.json and change the eslint lint rule that checks this from warning to error so that we will never regress later.
Note that there is no change in yarn.lock, which shows that the change likely won't cause any node_modules's size increase. Any decent package manager would be able to dedupe all the webpack dependencies into a single on in common cases.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
CI. Preview works.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)