-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent bundling of css assets between builds (Vite, Stylex) #9451
Comments
it seems that after the release of |
update: Unfortunately, the problem persists. currently some routes load a single css file, others include duplicate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction
When using the
?url
import, there seems to be a mismatch between the generated assets, resulting in two identical css files (with different hashes), with the mismatched included at the top of the<head/>
. It's avite-plugin-stylex-dev
for StyleX css solution.For some reason I cannot reproduce bug in the sandbox.
This happens occasionally between builds, so maybe it's due to some internal Remix caching. When this mismatch occurs, this line outputs:
Logs:
remix/packages/remix-dev/vite/plugin.ts
Lines 1441 to 1454 in 2e65318
Original issue:
nonzzz/vite-plugin-stylex#25
System Info
Used Package Manager
pnpm
Expected Behavior
pnpm build
should result in a single css fileActual Behavior
pnpm build
results in identical duplicate of the original css file and includes it in the output htmlThe text was updated successfully, but these errors were encountered: