mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
7c9be45a48
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 <jj@jjsweb.site>
12 lines
269 B
CSS
12 lines
269 B
CSS
@import url('https://cdn.jsdelivr.net/npm/modern-css-reset/dist/reset.min.css')
|
|
layer(default);
|
|
/* Any external stylesheet should work. Using this css-reset because it is very small and backed by CDN */
|
|
|
|
@layer default, new;
|
|
|
|
@layer new {
|
|
h1 {
|
|
margin: 5px;
|
|
}
|
|
}
|