Title: Is it expected that buildEnd works differently for different plugins? · Issue #569 · unjs/unplugin · GitHub
Open Graph Title: Is it expected that buildEnd works differently for different plugins? · Issue #569 · unjs/unplugin
X Title: Is it expected that buildEnd works differently for different plugins? · Issue #569 · unjs/unplugin
Description: Describe the change I'm mostly comparing vite and webpack. Vite calls buildEnd once when the server stops according to their docs and my observations, while for webpack buildEnd is strictly about the build process and when the bundling i...
Open Graph Description: Describe the change I'm mostly comparing vite and webpack. Vite calls buildEnd once when the server stops according to their docs and my observations, while for webpack buildEnd is strictly about t...
X Description: Describe the change I'm mostly comparing vite and webpack. Vite calls buildEnd once when the server stops according to their docs and my observations, while for webpack buildEnd is strictly abo...
Opengraph URL: https://github.com/unjs/unplugin/issues/569
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is it expected that buildEnd works differently for different plugins?","articleBody":"### Describe the change\n\nI'm mostly comparing vite and webpack. Vite calls `buildEnd` once when the server stops according to their docs and my observations, while for webpack `buildEnd` is strictly about the build process and when the bundling is completed in the dev mode `buildEnd` fires, even though the server is still active.\n\nHonestly, I don't know what is the best solution here, maybe creating new `serverStart`/`serverEnd` hooks that will use `buildEnd` in vite, but e.g. `shutdown` (https://webpack.js.org/api/compiler-hooks/#shutdown) in webpack, or add a note in the docs, that `buildEnd` behaviour varies.\nJust wanted to get an opinion on whether it's transparent to have a hook that works quite differently 😸 \n\n### URLs\n\n_No response_\n\n### Additional information\n\n- [x] Would you be willing to help?","author":{"url":"https://github.com/AleksandrSl","@type":"Person","name":"AleksandrSl"},"datePublished":"2025-12-10T22:08:14Z","url":"https://github.com/unjs/unplugin/issues/569"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7bb43054-b465-4625-1f46-1bacd378568e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE62:2B41BC:100EE20:1598D69:6B005E2F |
| html-safe-nonce | 05eaabcf75b39052665bea4893bc9d580c5a42904605344fafc9581fc192d2f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTYyOjJCNDFCQzoxMDBFRTIwOjE1OThENjk6NkIwMDVFMkYiLCJ2aXNpdG9yX2lkIjoiNzExOTI3ODc0ODcyOTM2ODExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a24235c783081d4eab0e9c0d9088c691a9fabdcd1fea83fcdc4f5b35209e8145 |
| hovercard-subject-tag | issue:3716945525 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unjs/unplugin/569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1fdd010635d604d1dc03034bb4d2b10326e3c552c579e0431c8df018b804d7f2/unjs/unplugin/issues/569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1fdd010635d604d1dc03034bb4d2b10326e3c552c579e0431c8df018b804d7f2/unjs/unplugin/issues/569 |
| og:image:alt | Describe the change I'm mostly comparing vite and webpack. Vite calls buildEnd once when the server stops according to their docs and my observations, while for webpack buildEnd is strictly about t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AleksandrSl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/unjs/unplugin git https://github.com/unjs/unplugin.git |
| octolytics-dimension-user_id | 80154025 |
| octolytics-dimension-user_login | unjs |
| octolytics-dimension-repository_id | 385261169 |
| octolytics-dimension-repository_nwo | unjs/unplugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 385261169 |
| octolytics-dimension-repository_network_root_nwo | unjs/unplugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width