Repository navigation
docs: group the plugins index by purpose and list the missing plugin pages - #8377
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
#3726 asked for the plugins list to be grouped by what the plugins do, rather than one flat alphabetical table. Checking it now turned up a second, larger problem: the table had drifted out of sync with the pages.
Eleven plugin pages exist on the site but were not listed on
/plugins/at all —SplitChunksPlugin,ModuleFederationPlugin,ModuleConcatenationPlugin,ManifestPlugin,VirtualUrlPlugin,ProfilingPlugin,PrefetchPlugin,AutomaticPrefetchPlugin,ContextExclusionPlugin,WatchIgnorePluginandHashedModuleIdsPlugin. They were reachable only by direct URL or search, which is the same "I can't find the plugin I need" complaint the issue opens with. All are now listed.The table is split into Sources and modules, Output and assets, Chunks and optimization, Module Federation, and Development and diagnostics. The original issue proposed grouping by capability and a maintainer countered that most plugins would fall into
Others; five groups of 7–11 rows each turned out to divide cleanly, so noOthersbucket was needed.Where a configuration option now does the same job, the row says so and links it (
optimization.splitChunks,optimization.concatenateModules,optimization.moduleIds), since that is the part of "which plugin do I need?" most often answered with "none".A correction. The
HashedModuleIdsPluginpage said "Suggested for use in production". That advice is now wrong in both directions:optimization.moduleIdsalready defaults to'deterministic'inproduction, and selecting the equivalentoptimization.moduleIds: 'hashed'makes webpack emit a deprecation warning naming'deterministic'as the replacement (WarnDeprecatedOptionPlugininlib/WebpackOptionsApply.js). The page now points at the option instead.Also checked while here, and deliberately not changed: the deprecated contrib plugins (
extract-text-webpack-plugin,uglifyjs-webpack-plugin,babel-minify-webpack-plugin,i18n-webpack-plugin, …) are already suppressed from the generated list byexcludedPluginsinsrc/utilities/constants.mjs, and of the packages still linked, onlyextract-text-webpack-plugincarries an npm deprecation flag — it is one of the excluded ones.copy-webpack-pluginis not npm-deprecated, so its row now reads "superseded by the built-inCopyPlugin" rather than "deprecated".Closes #3726
What kind of change does this PR introduce?
docs
Did you add tests for your changes?
n/a — documentation only; lint, prettier, markdownlint and the jest suite pass locally, and every page and anchor referenced from the new table was checked to exist.
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 — this PR is the documentation.
Use of AI
Claude Code was used to diff the plugin pages against the index table, to check each plugin's status against webpack's own exports and schema (
lib/index.js,schemas/WebpackOptions.json,lib/WebpackOptionsApply.js) and against the npm registry for deprecation flags, and to draft the regrouped table. The claims about what is deprecated or superseded come from those sources rather than from assumption; one draft sentence that promised a "built in" marking the table did not have was caught and rewritten before committing.🤖 Generated with Claude Code
https://claude.ai/code/session_01Cb4AP4BntRzji5vSqhzYWT
Generated by Claude Code