diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index da1ef1fcfecefe..e8fbc2db454950 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -2187,6 +2187,7 @@ async function compileLightningCSS( : await ( await importLightningCSS() ).bundleAsync({ + ...config.css?.lightningcss, filename, resolver: { read(filePath) { @@ -2217,14 +2218,12 @@ async function compileLightningCSS( return id }, }, - targets: config.css?.lightningcss?.targets, minify: config.isProduction && !!config.build.cssMinify, sourceMap: config.css?.devSourcemap, analyzeDependencies: true, cssModules: cssModuleRE.test(id) ? config.css?.lightningcss?.cssModules ?? true : undefined, - drafts: config.css?.lightningcss?.drafts, }) let css = res.code.toString()