diff --git a/packages/vite/src/node/optimizer/index.ts b/packages/vite/src/node/optimizer/index.ts index 88e29418ca2a8a..0a2e793ecb1f27 100644 --- a/packages/vite/src/node/optimizer/index.ts +++ b/packages/vite/src/node/optimizer/index.ts @@ -299,6 +299,7 @@ function getDepHash(root: string, config: ResolvedConfig): string { alias: config.alias, dedupe: config.dedupe, assetsInclude: config.assetsInclude, + plugins: config.plugins.map((p) => p.name), optimizeDeps: { include: config.optimizeDeps?.include, exclude: config.optimizeDeps?.exclude