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(rspack): support buildStart #319

Merged
merged 2 commits into from
Jul 3, 2023
Merged

feat(rspack): support buildStart #319

merged 2 commits into from
Jul 3, 2023

Conversation

Wyatex
Copy link
Contributor

@Wyatex Wyatex commented Jul 1, 2023

buildStart looks supported in the readme, but it doesn't actually support that. So I copied it directly from the webpack and tried it and it worked.

@antfu antfu requested a review from sxzz July 1, 2023 11:50
compiler.modifiedFiles.forEach(file =>
promises.push(
Promise.resolve(
plugin.watchChange!.call(context, file, {
Copy link
Member

Choose a reason for hiding this comment

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

The returning value of watchChange is void. Why do need Promise.resolve here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The watchChange is indeed useless, I have already removed it.

@Wyatex Wyatex force-pushed the main branch 2 times, most recently from 16a127d to fa502ba Compare July 3, 2023 08:37
@sxzz sxzz merged commit c9bbc97 into unjs:main Jul 3, 2023
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