Skip to content

Document webpack change: allow to move modules to parent chunks #3998

Closed
@webpack-bot

Description

@webpack-bot

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#11529


What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
splitChunks.cacheGroups.*.name can be used to move modules into a chunk that is a parent of the source chunk. Examples: name: "runtime" to move modules into the runtime chunk, name: "entry-name" to move modules into the entry chunk. On demand named chunks can also be used, but one have to be careful that the selected modules are only used below this chunk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions