Skip to content

Conversation

askoufis
Copy link
Contributor

The example given in the docs for NormalModuleReplacementPlugin uses quite an expensive regex for what it's trying to achieve. This exact regex was the source of a sizeable performance hit in one of our applications. I've updated it to be simpler and more performant.

Copy link

vercel bot commented Aug 13, 2024

@askoufis is attempting to deploy a commit to the Webpack Docs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
webpack-js-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 10:49am

Copy link
Member

@chenxsan chenxsan left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks.

@chenxsan chenxsan merged commit ecf45df into webpack:main Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants