astro/.changeset/nine-pants-leave.md
Matthew Phillips 27ac6a03a1
Use CSS depth to sort CSS in production (#4446)
* Use CSS depth to sort CSS in production

* Adds a changeset
2022-08-23 13:26:49 -04:00

370 B

astro
patch

Deterministic CSS ordering

This makes our CSS link order deterministic. It uses CSS depth; that is how deeply a module import the CSS comes from, in order to determine which CSS is page-level vs. component-level CSS.

This is intended to match dev ordering where, because we do not bundle, the page-level CSS always comes after component-level.