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 issue with thread-loader + babel-loader performance #868

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

krisselden
Copy link
Contributor

avoid sending resolver config per file.

@@ -0,0 +1,17 @@
const { applyVariantToBabelConfig } = require('@embroider/core');
module.exports = require('babel-loader').custom(babel => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

A short description of the "fix" would be great. As it may not be obvious for future travelers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added more to commit description

since thread-loader serializes options per file
we only pass the config file and variant to the
loader then apply the variant to the config inside
the worker.
@ef4 ef4 merged commit aa231bf into embroider-build:master Jun 23, 2021
@rwjblue rwjblue added the bug Something isn't working label Jun 23, 2021
@rwjblue rwjblue changed the title fix issue with thread-loader performance Fix issue with thread-loader + babel-loader performance Jun 23, 2021
@krisselden krisselden deleted the fix-thread-loader-perf branch July 28, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants