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: avoid function properties lost #163

Merged
merged 2 commits into from
Mar 28, 2021
Merged

fix: avoid function properties lost #163

merged 2 commits into from
Mar 28, 2021

Conversation

hanzooo
Copy link
Contributor

@hanzooo hanzooo commented Mar 18, 2021

Fix #160
The compiler.webpack is a function with some properties, they're lost after call function bind. I use proxy to keep them access.

@hanzooo hanzooo changed the title fix: use proxy to avoid function properties miss fix: avoid function properties lost Mar 18, 2021
@markjm
Copy link

markjm commented Mar 27, 2021

Hi @stephencookdev - thanks for maintaining this plugin. In my project, I have validated that this resolves incompatibilities with webpack 5 as well. We are now using a patch from this pull request. Thanks @hanzooo for the fix as well.

@stephencookdev
Copy link
Owner

This is awesome @hanzooo, thanks for the fix! I've just tested this all works great 🙂 will merge and release something for this now

@stephencookdev stephencookdev changed the base branch from master to release/1.5.0 March 28, 2021 11:01
@stephencookdev stephencookdev merged commit 07caba0 into stephencookdev:release/1.5.0 Mar 28, 2021
sunft1996 pushed a commit to sunft1996/speed-measure-webpack-plugin-source-read that referenced this pull request Jul 20, 2023
fix: avoid function properties lost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with some other webpack plugins
3 participants