Skip to content

docs: fix lodash dependency guidance in authoring libraries guide#7903

Open
chirag-patil625 wants to merge 1 commit intowebpack:mainfrom
chirag-patil625:fix/author-libraries-lodash-dep
Open

docs: fix lodash dependency guidance in authoring libraries guide#7903
chirag-patil625 wants to merge 1 commit intowebpack:mainfrom
chirag-patil625:fix/author-libraries-lodash-dep

Conversation

@chirag-patil625
Copy link
Contributor

lodash is a direct dependency of the library (imported via require/import), so it should be listed in dependencies, not devDependencies. It should also not be referred to as a peerDependency. The externals config prevents it from being bundled, while listing it in dependencies ensures it gets installed when users install the library.

Fixes #6896

Summary

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI

lodash is a direct dependency of the library (imported via require/import),
so it should be listed in dependencies, not devDependencies. It should also
not be referred to as a peerDependency. The externals config prevents it
from being bundled, while listing it in dependencies ensures it gets
installed when users install the library.

Fixes webpack#6896
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 3, 2026 6:17pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misguiding document on authoring libraries

1 participant