Skip to content

Commit 3893b22

Browse files
authored
docs: Bun support buildEnd and writeBundle hooks [ci skip] (#595)
1 parent c943f9e commit 3893b22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/guide/index.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ export default defineConfig({
219219
| ~~`transformInclude`~~<sup>2</sup> | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
220220
| [`transform`](https://rollupjs.org/plugin-development/#transform) | ✅ | ✅ | ✅ | ✅ <sup>3</sup> | ✅ | ✅ | ✅ | ✅ |
221221
| [`watchChange`](https://rollupjs.org/plugin-development/#watchchange) | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
222-
| [`buildEnd`](https://rollupjs.org/plugin-development/#buildend) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ <sup>6</sup> |
223-
| [`writeBundle`](https://rollupjs.org/plugin-development/#writebundle)<sup>4</sup> | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ <sup>6</sup> |
222+
| [`buildEnd`](https://rollupjs.org/plugin-development/#buildend) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ <sup>6</sup> |
223+
| [`writeBundle`](https://rollupjs.org/plugin-development/#writebundle)<sup>4</sup> | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ <sup>6</sup> |
224224

225225
::: details Notice
226226

@@ -231,7 +231,7 @@ export default defineConfig({
231231
3. Although esbuild can handle both JavaScript and CSS and many other file formats, you can only return JavaScript in `load` and `transform` results.
232232
4. Currently, `writeBundle` is only serves as a hook for the timing. It doesn't pass any arguments.
233233
5. Rspack supports `resolveId` with a minimum required version of v1.0.0-alpha.1.
234-
6. Bun's plugin API doesn't have an `onEnd` hook yet, so `buildEnd` and `writeBundle` are not supported.
234+
6. Bun supports `buildEnd` and `writeBundle` with a minimum required version of v1.3.0.
235235

236236
:::
237237

0 commit comments

Comments
 (0)