Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix regexp in DefaultStatsPrinterPlugin.js #14679

Merged
merged 1 commit into from Nov 8, 2021
Merged

fix regexp in DefaultStatsPrinterPlugin.js #14679

merged 1 commit into from Nov 8, 2021

Conversation

vankop
Copy link
Member

@vankop vankop commented Nov 8, 2021

What kind of change does this PR introduce?

bugfix

fixes #14678

Did you add tests for your changes?

no

Does this PR introduce a breaking change?

nothing

What needs to be documented once your changes are merged?

nothing

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@webpack-bot
Copy link
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@@ -1160,7 +1160,7 @@ const AVAILABLE_FORMATS = {
},
{ regExp: /(\(module has no exports\))/g, format: red },
{ regExp: /\(possible exports: (.+)\)/g, format: green },
{ regExp: /\s*(.+ doesn't exist)/g, format: red },
{ regExp: /\s*([^\s].* doesn't exist)/g, format: red },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vankop make sense to look at other .+ places

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also small test to avoid regressions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did, at least for DefaultStatsPrinterPlugin.js

@sokra
Copy link
Member

sokra commented Nov 8, 2021

Thanks

@sokra sokra deleted the fix-regexp branch November 8, 2021 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance issue with DefaultStatsPrinterPlugin.js
4 participants