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

docs: Replace overkill regex with a much simpler one #7353

Merged
merged 1 commit into from
Aug 13, 2024
Merged

docs: Replace overkill regex with a much simpler one #7353

merged 1 commit into from
Aug 13, 2024

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
8 checks passed
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