Skip to content

The transitive only side effects may cause the effect of option optimization.chunkIds: "deterministic" not to be as expected #676

@l5oo00

Description

@l5oo00
  • Operating System: Mac & LInux
  • Node Version: v13.14.0 & v12.16.1
  • NPM Version: v6.14.4 & v6.13.4
  • webpack Version: v5.11.1
  • mini-css-extract-plugin Version: v0.12.0 and above

Expected Behavior

See the final example, npm run build:disable-feature is the expected behavior:

$ npm run build:disable-feature

Right:
    Expect chunkIds: 179 362
    Received chunkIds: 179 362

Actual Behavior

See the final example, npm run build is the actual behavior:

$ npm run build

Wrong:
    Expect chunkIds: 179 362
    Received chunkIds: 179 924

Code

This bug may caused by this feature: #599 .

How Do We Reproduce?

Here is an example repository: https://github.com/l5oo00/demo-for-mini-css-extract-plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions