From 2dd68ec0d8c9afc5d9301a5ead5c52ab656415f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 4 Mar 2024 07:21:19 +0800 Subject: [PATCH] docs: fully support nested plugins in esbuild --- guide/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/index.md b/guide/index.md index 752a13b..374c723 100644 --- a/guide/index.md +++ b/guide/index.md @@ -219,13 +219,13 @@ export const esbuildPlugin = unplugin.esbuild Since `v0.10.0`, **Unplugin** supports constructing multiple nested plugins to behave like a single one. ### Bundler Supported -| Rollup | Vite | webpack 4 | webpack 5 | Rspack | esbuild | -| :--------------------: | :--: | :-------: | :-------: | :----: | :------------: | -| ✅ `>=3.1`1 | ✅ | ✅ | ✅ | ✅ | ⚠️2 | + +| Rollup | Vite | webpack 4 | webpack 5 | Rspack | esbuild | +| :--------------------: | :--: | :-------: | :-------: | :----: | :----------: | +| ✅ `>=3.1`1 | ✅ | ✅ | ✅ | ✅ | ✅ (v1.8.0+) | ::: details Notice 1. Rollup supports nested plugins since [v3.1.0](https://github.com/rollup/rollup/releases/tag/v3.1.0). Plugin author should ask users to have a Rollup version of `>=3.1.0` when using nested plugins. For single plugin format, **Unplugin** works for any version of Rollup. -2. Since esbuild does not have a built-in transform phase, the `transform` hook of the nested plugin will not work on esbuild yet. Other hooks like `load` or `resolveId` work fine. We will try to find a way to support it in the future. ::: ### Usage