Skip to content

Commit

Permalink
Update swc_core to v0.53.0 (vercel/turborepo#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jan 10, 2023
1 parent 57bd947 commit 79ae737
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 20 deletions.
6 changes: 5 additions & 1 deletion crates/turbopack-css/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ impl CssInputTransform {
) -> Result<()> {
match *self {
CssInputTransform::Nested => {
stylesheet.visit_mut_with(&mut swc_core::css::compat::nesting::nesting());
stylesheet.visit_mut_with(&mut swc_core::css::compat::compiler::Compiler::new(
swc_core::css::compat::compiler::Config {
process: swc_core::css::compat::feature::Features::NESTING,
},
));
}
CssInputTransform::Custom => todo!(),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"f",
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#2,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"ee",
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#1,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
Some(
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#5,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
Some(
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#5,
),
),
Expand All @@ -288,7 +288,7 @@
Some(
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#6,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"f",
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#7,
),
),
Expand Down Expand Up @@ -233,7 +233,7 @@
"z#8",
Variable(
(
Atom('e' type=inline),
Atom('e' type=static),
#7,
),
),
Expand Down
24 changes: 12 additions & 12 deletions crates/turbopack-ecmascript/tests/analyzer/graph/peg/graph.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@
[
Variable(
(
Atom('ch' type=inline),
Atom('ch' type=static),
#13,
),
),
Expand Down Expand Up @@ -1159,7 +1159,7 @@
[
Variable(
(
Atom('ch' type=inline),
Atom('ch' type=static),
#14,
),
),
Expand Down Expand Up @@ -1192,7 +1192,7 @@
[
Variable(
(
Atom('ch' type=inline),
Atom('ch' type=static),
#16,
),
),
Expand Down Expand Up @@ -1225,7 +1225,7 @@
[
Variable(
(
Atom('ch' type=inline),
Atom('ch' type=static),
#17,
),
),
Expand Down Expand Up @@ -3197,7 +3197,7 @@
KeyValue(
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
Member(
Expand All @@ -3210,7 +3210,7 @@
),
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
),
Expand Down Expand Up @@ -3564,7 +3564,7 @@
4,
Variable(
(
Atom('ch' type=inline),
Atom('ch' type=static),
#11,
),
),
Expand Down Expand Up @@ -7374,7 +7374,7 @@
KeyValue(
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
Member(
Expand All @@ -7387,7 +7387,7 @@
),
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
),
Expand Down Expand Up @@ -7441,7 +7441,7 @@
KeyValue(
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
Member(
Expand All @@ -7454,7 +7454,7 @@
),
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
),
Expand Down Expand Up @@ -9543,7 +9543,7 @@
KeyValue(
Constant(
StrWord(
Atom('column' type=inline),
Atom('column' type=static),
),
),
Constant(
Expand Down

0 comments on commit 79ae737

Please sign in to comment.