Skip to content

fix: preserve stylesheet identity and options - #10

Merged
KyleJune merged 1 commit into
mainfrom
codex/postcss-module-identity
Sep 8, 2026
Merged

fix: preserve stylesheet identity and options#10
KyleJune merged 1 commit into
mainfrom
codex/postcss-module-identity

Conversation

@KyleJune

@KyleJune KyleJune commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

Stylesheets imported with the same relative filename from different directories could collapse into one esbuild module. Each stylesheet now has an identity relative to the build root, and modules: false consistently disables module rewriting.

Changes

  • Preserve distinct CSS content and class maps across directories with portable module identifiers.
  • Honor modules: false for .module.css and custom selectors, including suppressing JSON output.
  • Replace the ineffective disabled-module test with behavioral regressions, and exercise the actual default options.

Testing

All four new regression cases failed against the original implementation. Full standalone deno task check and deno task test --parallel --reporter=dot passed on Windows: 7 tests, 30 steps, including Tailwind 4 and resource sanitizers.

Closes

Nothing.

@KyleJune
KyleJune merged commit eb549c7 into main Sep 8, 2026
6 checks passed
github-actions Bot pushed a commit that referenced this pull request Sep 8, 2026
## [0.4.1](0.4.0...0.4.1) (2026-09-08)

### Bug Fixes

* preserve stylesheet identity and options ([#10](#10)) ([eb549c7](eb549c7))
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant