Repository navigation
fix(feedback): Rename *.css.ts style modules to *.styles.ts - #26842
Conversation
Since the switch to per-module output, the package shipped `*.css.js` files. `@vanilla-extract/vite-plugin` treats every such file as a stylesheet, also in `node_modules`, and failed the build with "Invalid exports".
size-limit report 📦Compared: 3154f63 (PR test merge using develop at 348db39) Against: 348db39 (develop) · base run #67818 ✅ Baseline matches: this diff contains only this PR's changes.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6d55699. Configure here.
| @@ -1,5 +1,5 @@ | |||
| import { DOCUMENT, TRIGGER_LABEL } from '../../constants'; | |||
| import { createActorStyles } from './Actor.css'; | |||
| import { createActorStyles } from './Actor.styles'; | |||
There was a problem hiding this comment.
Fix lacks regression test
Low Severity
This is flagged because the review guidelines require a fix PR to include a unit, integration, or E2E test for the regression it addresses. The rename of *.css.ts modules is not covered by a test that fails if those files return and @vanilla-extract/vite-plugin compiles them again.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 6d55699. Configure here.
There was a problem hiding this comment.
hmm, I wonder if there is a way to test this properly? seems reasonable to do so I suppose. but this can be in a follow up too
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 32 successful. See the run.
Successful checks
|


The feedback package shipped
*.css.jsfiles that@vanilla-extract/vite-plugintried to compile as stylesheets and failed the build, fixed by renaming them to*.styles.ts.Nothing should be importing these so a rename is fine. This regressed after rolldown migration because it dropped
preserveModules.closes #26839