diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index ecdcc8084..e630291a2 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -2686,9 +2686,6 @@ async function compileLightningCSS( ? !!config.build.sourcemap : config.css?.devSourcemap, analyzeDependencies: true, - cssModules: cssModuleRE.test(id) - ? config.css?.lightningcss?.cssModules ?? true - : undefined, }) let css = res.code.toString()