Skip to content

configuration.stats has an unknown property 'maxModules' #6286

Closed
@AmalJossy

Description

@AmalJossy

Feature to document

In the Debugging Optimization Bailouts doc, the snippet provided is

module.exports = {
  //...
  stats: {
    // Examine all modules
    maxModules: Infinity,
    // Display bailout reasons
    optimizationBailout: true,
  },
};

However, maxModules is not a valid parameter anymore, webpack will fail with the following message if the parameter is present in config.
`Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration.stats has an unknown property 'maxModules'`

An explanation of how bailout reasons for all modules can be displayed can also be helpful here

Author(s)

@skipjack @TheLarkInn @byzyk

Additional information

N/A

[ ] I am willing to work on this issue and submit a pull request.

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