From e019ea06e64e949a786c08aa9f04b592f972df37 Mon Sep 17 00:00:00 2001 From: danimoh <6204514+danimoh@users.noreply.github.com> Date: Fri, 13 Mar 2020 14:54:24 +0100 Subject: [PATCH] Correctly specify type of writeBundle hook in docs (#3441) --- docs/05-plugin-development.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/05-plugin-development.md b/docs/05-plugin-development.md index 0ae2b48fb7f..51544787d48 100644 --- a/docs/05-plugin-development.md +++ b/docs/05-plugin-development.md @@ -413,7 +413,7 @@ resolveImportMeta(property, {moduleId}) { Note that since this hook has access to the filename of the current chunk, its return value will not be considered when generating the hash of this chunk. #### `writeBundle` -Type: `( bundle: { [fileName: string]: AssetInfo | ChunkInfo }) => void`
+Type: `(options: OutputOptions, bundle: { [fileName: string]: AssetInfo | ChunkInfo }) => void`
Kind: `async, parallel`
Previous Hook: [`generateBundle`](guide/en/#generatebundle)
Next Hook: If it is called, this is the last hook of the output generation phase and may again be followed by [`outputOptions`](guide/en/#outputoptions) if another output is generated.