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: Fix the problem that esbuild service cannot be detected due to childcompiler in webpack #17

Merged
merged 2 commits into from Aug 5, 2020

Conversation

zhusjfaker
Copy link
Contributor

fix: Fix the problem that esbuild service cannot be detected due to childcompiler in webpack

Among the common plugins in webpack, many plugins create child-compiler to build their own chunks.
However, the value of $esbuildservice is not correctly assigned, which causes errors in the
compilation of webpack on the child-compiler,For example, mini CSS extract plugin

Closes #16

zhusjfaker and others added 2 commits August 6, 2020 00:00
…hildcompiler in webpack For example, mini CSS extract plugin

Among the common plugins in webpack, many plugins create child-compiler to build their own chunks.
However, the value of $esbuildservice is not correctly assigned, which causes errors in the
compilation of webpack on the child-compiler,For example, mini CSS extract plugin

Closes privatenumber#16
@egoist egoist merged commit 501f2ba into privatenumber:master Aug 5, 2020
@github-actions
Copy link

github-actions bot commented Aug 5, 2020

🎉 This PR is included in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@privatenumber
Copy link
Owner

Was there reproduction for a case where this is demonstrated to be needed?

Based on the docs here, it sounds like it shouldn't be necessary because child compilers copy plugins from the parent.

On a separate note, it might be worth accessing the service via closure so multiple webpack builds running in the same process can access the same instance of esbuild.

@zhusjfaker
Copy link
Contributor Author

zhusjfaker commented Aug 5, 2020 via email

@privatenumber
Copy link
Owner

Let's add a test case next time.

Because of how many points of failure that repo has, it's not proven the bug is rooted there.

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.

webpack use mini-css-extract-plugin with esbuild-loader has error
3 participants