Commit 7c9be45
[Turbopack] Include CSS URL attributes, including Layer, Media and Supports (#89300)
Note that this is my first contribution in Rust, so let me know if I
missed anything idiomatic or if there is a particularly better way to do
something.
Also, I did not use AI to create this at all, although I did chat a bit
to try to wrap my head around types.
- Related issues linked using Fixes
#88533
- Tests added.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md
Summary of changes: Adds support for all of the attributes of `@import`
for Turbopack, by modifying the turbopack-css package, including Layer,
Media and Supports. [W3
Reference](https://www.w3.org/TR/css-cascade-5/#at-import)
---------
Co-authored-by: JJ Kasper <jj@jjsweb.site>1 parent 9ce7250 commit 7c9be45
File tree
27 files changed
+218
-60
lines changed- test/e2e/app-dir/app-css
- app
- externalLayer
- relativeLayer
- urlMedia
- urlSupports
- turbopack/crates
- turbopack-css/src
- chunk
- references
- turbopack-tests/tests/snapshot/css/import-url
- input
- output
27 files changed
+218
-60
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments