Skip to content

docs(target): fix contradiction about multiple targets support#8275

Merged
alexander-akait merged 2 commits into
mainfrom
claude/issue-8265-fix-2ku36t
Jun 17, 2026
Merged

docs(target): fix contradiction about multiple targets support#8275
alexander-akait merged 2 commits into
mainfrom
claude/issue-8265-fix-2ku36t

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

The concepts page claimed webpack does not support multiple strings in target, contradicting the configuration page which documents target: ["web", "es5"]. This aligns both pages: webpack 5 supports an array of targets (the common subset of features is used), including combining web and node to build universal code. Adds a target: ["web", "node"] example on both pages. Fixes #8265.

What kind of change does this PR introduce?

docs

Did you add tests for your changes?

n/a — documentation-only change.

Does this PR introduce a breaking change?

No.

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

n/a

Use of AI

AI (Claude Code) was used to locate the contradicting passages and draft the corrected wording and examples; the changes were reviewed for accuracy against webpack 5 behavior.

The concepts page claimed webpack does not support multiple strings in
target, contradicting the configuration page. webpack 5 supports an array
of targets; only a universal web+node target is unsupported for now.
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Jun 17, 2026 11:45am

Request Review

@alexander-akait alexander-akait merged commit 66a4672 into main Jun 17, 2026
9 checks passed
@alexander-akait alexander-akait deleted the claude/issue-8265-fix-2ku36t branch June 17, 2026 12:56
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.

[webpack.config.js] target one doc says it cannot be multiple strings, another says it can be string[]

1 participant