Nx
Enterprise
Nx
fix(bundling): prevent treeshaking of CSS modules in extract mode The postcss plugin's transform hook returns an empty export for CSS files in extract mode, which Rollup treeshakes away. This causes the generateBundle hook to miss the CSS content entirely, resulting in no CSS files in the dist output. Adding moduleSideEffects: true to the transform return tells Rollup to keep CSS modules in the bundle regardless of whether their exports are used, since CSS imports are inherently side-effectful. Fixes #34776
nx-cloud record -- nx-cloud conformance:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
cc3efa76
34830