mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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 https://github.com/vercel/next.js/issues/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 <[email protected]>
10 lines
115 B
CSS
10 lines
115 B
CSS
@import './import.css' layer(new);
|
|
|
|
@layer default, new;
|
|
|
|
@layer default {
|
|
h2 {
|
|
color: rgb(255, 0, 0);
|
|
}
|
|
}
|