Skip to content

Commit

Permalink
Upgrade Lightning CSS (#308)
Browse files Browse the repository at this point in the history
Upgrade required for vercel/turborepo#8176
  • Loading branch information
timneutkens committed May 20, 2024
1 parent 3aafcff commit b50615b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/styled-jsx/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ custom_transform = ["swc_common/concurrent"]

[dependencies]
anyhow = "1"
lightningcss = { version = "1.0.0-alpha.55", features = [
lightningcss = { version = "1.0.0-alpha.56", features = [
"visitor",
"into_owned",
] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ fn parse_token_list<'i>(tokens: &TokenList<'i>) -> Selector<'i> {
TokenOrValue::UnresolvedColor(..) => {
unimplemented!("parse_token_list: unresolved color")
}
TokenOrValue::AnimationName(_) => {
unimplemented!("parse_token_list: animation name")
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const someVar = "--var-1";
export default function App({ Component, pageProps }) {
return <>

<_JSXStyle id={"f559f0d916e6258b"}>{`:root{${someVar}:red;background-color:var(${someVar})}`}</_JSXStyle>
<_JSXStyle id={"f559f0d916e6258b"}>{`:root{background-color:var(${someVar});${someVar}:red}`}</_JSXStyle>

<Component {...pageProps} className={"jsx-f559f0d916e6258b" + " " + (pageProps && pageProps.className != null && pageProps.className || "")}/>

Expand Down

0 comments on commit b50615b

Please sign in to comment.