Skip to content

fix: conditionally inject @import or @reference based on file type to fix css modules dedup without breaking global css#102

Closed
colinaaa wants to merge 2 commits intov4from
fix/css-modules-dedup-correct
Closed

fix: conditionally inject @import or @reference based on file type to fix css modules dedup without breaking global css#102
colinaaa wants to merge 2 commits intov4from
fix/css-modules-dedup-correct

Conversation

@colinaaa
Copy link
Copy Markdown
Collaborator

Summary

  • Use @reference instead of @import for .module.css (and other CSS modules) to resolve CSS modules duplication issues.
  • Retain @import for regular CSS files to ensure the theme :root variables are correctly emitted, which fixes the regression in CSS-only pipelines and custom CSS files that use theme variables (like test/functions).

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@colinaaa colinaaa closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant