Implement CSS Module tree shaking via lightningcss unused_symbols
For `.module.css` files, pass the list of unused CSS class names
(derived from BindingUsageInfo.used_exports on the owning EcmascriptCssModule)
to lightningcss MinifyOptions::unused_symbols, which removes the corresponding
CSS rules at build time. Global CSS files are unaffected.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment