Skip to content

fix(docs):resolve the guide TODOs for the plugin to its API references#163

Open
ryzrr wants to merge 2 commits into
mainfrom
fix/resolve-guide-plugin-todos
Open

fix(docs):resolve the guide TODOs for the plugin to its API references#163
ryzrr wants to merge 2 commits into
mainfrom
fix/resolve-guide-plugin-todos

Conversation

@ryzrr

@ryzrr ryzrr commented Jul 3, 2026

Copy link
Copy Markdown
Member

Issue - #158

Summary
Fixes some of the TODOs links

What kind of change does this PR introduce?
Fixing the Todos

Did you add tests for your changes?
No

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?
NA

Use of AI
Yes.

Copilot AI review requested due to automatic review settings July 3, 2026 16:00
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jul 3, 2026 4:30pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates several guide pages to replace #TODO[...] placeholder links for plugin/API references with concrete /docs/api/v5.x/... documentation URLs, improving navigability from guides into the generated API docs.

Changes:

  • Replaced placeholder links to SplitChunksPlugin, ModuleConcatenationPlugin, ProvidePlugin, ContextReplacementPlugin, DefinePlugin, and ModuleFederationPlugin with /docs/api/v5.x/... URLs.
  • Updated a few related references to optimization.splitChunks / cacheGroups to point at the API type documentation page used by the generated API docs.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pages/guides/optimization/tree-shaking.md Replaces ModuleConcatenationPlugin TODO links with /docs/api/v5.x/optimize/ModuleConcatenationPlugin.
pages/guides/optimization/code-splitting/index.md Replaces SplitChunksPlugin TODO links and updates optimization.splitChunks references to /docs/api/v5.x/....
pages/guides/optimization/caching.md Replaces SplitChunksPlugin TODO links and updates cacheGroups reference to /docs/api/v5.x/....
pages/guides/modules-and-dependencies/shimming.md Replaces ProvidePlugin TODO link with /docs/api/v5.x/plugins/ProvidePlugin.
pages/guides/modern-web/index.md Replaces SplitChunksPlugin TODO link with /docs/api/v5.x/optimize/SplitChunksPlugin.
pages/guides/migration/to-v3.md Replaces ContextReplacementPlugin / DefinePlugin TODO links with /docs/api/v5.x/plugins/....
pages/guides/getting-started/concepts/under-the-hood.md Replaces SplitChunksPlugin TODO links with /docs/api/v5.x/optimize/SplitChunksPlugin.
pages/guides/getting-started/concepts/module-federation.md Replaces ModuleFederationPlugin TODO link with /docs/api/v5.x/container/ModuleFederationPlugin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

### `getOptions` method for loaders

webpack 5 ships with a built-in [`this.getOptions`](#TODO[/api/loaders/#thisgetoptionsschema]) method available in the loader context. This is a breaking change for loaders that previously used the `getOptions` method from [schema-utils](https://github.com/webpack/schema-utils):
webpack 5 ships with a built-in [`this.getOptions`](/docs/api/v5.x/loaders/types#interface-normalmoduleloadercontext) method available in the loader context. This is a breaking change for loaders that previously used the `getOptions` method from [schema-utils](https://github.com/webpack/schema-utils):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
webpack 5 ships with a built-in [`this.getOptions`](/docs/api/v5.x/loaders/types#interface-normalmoduleloadercontext) method available in the loader context. This is a breaking change for loaders that previously used the `getOptions` method from [schema-utils](https://github.com/webpack/schema-utils):
webpack 5 ships with a built-in [`this.getOptions`](/docs/api/v5.x/loaders/types#getoptions) method available in the loader context. This is a breaking change for loaders that previously used the `getOptions` method from [schema-utils](https://github.com/webpack/schema-utils):

### `ModuleFederationPlugin` (high level)

[`ModuleFederationPlugin`](#TODO[/plugins/module-federation-plugin]) combines `ContainerPlugin` and `ContainerReferencePlugin`.
[`ModuleFederationPlugin`](/docs/api/v5.x/container/ModuleFederationPlugin) combines `ContainerPlugin` and `ContainerReferencePlugin`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
[`ModuleFederationPlugin`](/docs/api/v5.x/container/ModuleFederationPlugin) combines `ContainerPlugin` and `ContainerReferencePlugin`.
[`ModuleFederationPlugin`](/docs/api/container/ModuleFederationPlugin) combines `ContainerPlugin` and `ContainerReferencePlugin`.

Let's point to /, and then route / to whatever the latest version is

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.

4 participants