Skip to content

Document webpack change: Refactor getInitFragments #2655

@webpack-bot

Description

@webpack-bot

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

See pull request: webpack/webpack#8388


Refactor getInitFragments to a property in templateContext and apply method

Having only a single method in DependencyTemplate makes it easier to override

What kind of change does this PR introduce?
refactor

Did you add tests for your changes?
existing test

Does this PR introduce a breaking change?
yes, but with compat layer

What needs to be documented once your changes are merged?
DependencyTemplate.getInitFragments no longer exist and was replaced with a initFragments argument in the DependencyTemplate.apply method

Metadata

Metadata

Assignees

No one assigned

    Labels

    webpack5Docs for webpack 5

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions