Skip to content

Commit

Permalink
Upgrade lightningcss, disable grid scoping (#8176)
Browse files Browse the repository at this point in the history
### Description

Implements
https://github.com/parcel-bundler/lightningcss/pull/739/files.

Grid scoping in CSS Modules is disabled because Webpack CSS Modules
handling doesn't handle grid currently. This ensures moving from Webpack
to Turbopack doesn't have mismatching behavior around CSS grid.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
timneutkens committed May 21, 2024
1 parent 0c84bcb commit 2af6b12
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 48 deletions.
65 changes: 33 additions & 32 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ miette = { version = "5.10.0", features = ["fancy"] }
mdxjs = "0.2.2"
modularize_imports = { version = "0.68.14" }
styled_components = { version = "0.96.15" }
styled_jsx = { version = "0.73.20" }
styled_jsx = { version = "0.73.21" }
swc_core = { version = "0.92.5", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
Expand Down Expand Up @@ -240,7 +240,7 @@ indicatif = "0.17.3"
indoc = "2.0.0"
itertools = "0.10.5"
lazy_static = "1.4.0"
lightningcss = { version = "1.0.0-alpha.50", features = [
lightningcss = { version = "1.0.0-alpha.56", features = [
"serde",
"visitor",
"into_owned",
Expand Down
4 changes: 4 additions & 0 deletions crates/turbopack-css/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ async fn process_content(
],
},
dashed_idents: false,
grid: false,
..Default::default()
}),

_ => None,
Expand Down Expand Up @@ -1227,6 +1229,8 @@ mod tests {
css_modules: Some(lightningcss::css_modules::Config {
pattern: Pattern::default(),
dashed_idents: false,
grid: false,
..Default::default()
}),
..Default::default()
},
Expand Down

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

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

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

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

0 comments on commit 2af6b12

Please sign in to comment.