Skip to content

Preserve CSS import order in production builds - #1471

Merged
filipsobol merged 7 commits into
masterfrom
cc/11402-preserve-production-css-order
Aug 21, 2026
Merged

Preserve CSS import order in production builds#1471
filipsobol merged 7 commits into
masterfrom
cc/11402-preserve-production-css-order

Conversation

@filipsobol

@filipsobol filipsobol commented Aug 21, 2026

Copy link
Copy Markdown
Member

🚀 Summary

Adds preserveCssImportOrderPlugin() to preserve source CSS import order in Vite manual tests and moves strictExecutionOrder into that standalone plugin.


📌 Related issues


💡 Additional information

The plugin enables strict module execution order in bundled development and production. It intercepts and injects CSS only in production, leaving Vite's native development CSS handling and HMR intact. The plugin has 100% statement, branch, function, and line coverage.

@filipsobol
filipsobol requested a review from a team as a code owner August 21, 2026 07:17
@filipsobol
filipsobol merged commit 0940f95 into master Aug 21, 2026
8 checks passed
@filipsobol
filipsobol deleted the cc/11402-preserve-production-css-order branch August 21, 2026 12:21
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.

2 participants