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

feat: refactor plugins #749

Merged
merged 1 commit into from
Jul 8, 2020
Merged

feat: refactor plugins #749

merged 1 commit into from
Jul 8, 2020

Conversation

zamotany
Copy link
Contributor

@zamotany zamotany commented Jul 7, 2020

Motivation

Refactor plugins to make them more descriptive of what they do, generic and reusable.

? `${this.bundles.map(
bundleName =>
`if (!this["${bundleName}"]) { this.bundleRegistryLoad("${bundleName}", true, true); }\n`
)}\n`
Copy link
Member

Choose a reason for hiding this comment

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

if we have dedent in deps somewhere, then it could be used to make it easier to read the template, but that's just a suggestion

})
);

minifyWorker.end();
Copy link
Member

Choose a reason for hiding this comment

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

end() is now async: https://github.com/facebook/jest/blob/master/packages/jest-worker/src/index.ts#L140, make sure to check if the version you're on is async as well and if not, mark as todo or something

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 had a problem previosuly, when awaiting end() would never resolve and the whole process would hang indefinitely.

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

LGTM

@zamotany zamotany force-pushed the feat/refactor-plugins branch from 40d32a4 to 0cf3c13 Compare July 8, 2020 12:40
@zamotany zamotany merged commit 0747fd4 into master Jul 8, 2020
@zamotany zamotany deleted the feat/refactor-plugins branch July 8, 2020 13:01
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.

2 participants