-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
? `${this.bundles.map( | ||
bundleName => | ||
`if (!this["${bundleName}"]) { this.bundleRegistryLoad("${bundleName}", true, true); }\n` | ||
)}\n` |
There was a problem hiding this comment.
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
packages/haul-core/src/webpack/plugins/PreloadModulesDllPlugin.ts
Outdated
Show resolved
Hide resolved
}) | ||
); | ||
|
||
minifyWorker.end(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
40d32a4
to
0cf3c13
Compare
Motivation
Refactor plugins to make them more descriptive of what they do, generic and reusable.