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

Document compiler.run() needs compiler.close() #4775

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

slorber
Copy link
Contributor

@slorber slorber commented Mar 25, 2021

The API doc is not very clear regarding the need to call compiler.close() after compiler.run() (only the changelog was).

It seems to me important because persistent cache won't be flushed otherwise.
Also important to show that the callback takes an error that may be thrown if persistent caching fails.

Preview link: https://webpack-js-org-git-fork-slorber-patch-3-webpack-docs.vercel.app/api/node/#run

@vercel
Copy link

vercel bot commented Mar 25, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/47MgYVz4tTbq182vBVgqbSpYPVxS
✅ Preview: https://webpack-js-org-git-fork-slorber-patch-3-webpack-docs.vercel.app

@slorber
Copy link
Contributor Author

slorber commented Mar 25, 2021

cc @alexander-akait

related to my comment webpack/webpack#12345

@slorber
Copy link
Contributor Author

slorber commented Mar 25, 2021

not sure why. the CLA bot seems stuck

image

@chenxsan chenxsan added the API label Mar 26, 2021
Copy link
Member

@chenxsan chenxsan left a comment

Choose a reason for hiding this comment

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

lgtm

@chenxsan chenxsan merged commit 7ab2e82 into webpack:master Mar 26, 2021
@chenxsan
Copy link
Member

Thanks for your contribution.

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.

None yet

2 participants