Skip to content

Document webpack change: deprecate stats.warningsFilter in favor of ignoreWarnings #3995

Closed
@webpack-bot

Description

@webpack-bot

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

See pull request: webpack/webpack#11506


improve warnings and errors handling in stats
respect warningsFilter for warnings count
include child compilation warnings and errors in count
show hint for child compilation errors and warnings
add config.ignoreWarnings
deprecate stats.warningsFilter

What kind of change does this PR introduce?
refactoring

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
no, only deprecation

What needs to be documented once your changes are merged?

  • stats.warningsFilter is deprecated
  • ignoreWarnings is the new option
    • RegExp
    • {module?: RegExp, file?: RegExp, message?: RegExp}
    • function(WebpackError, Compilation): boolean

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