Skip to content

Commit

Permalink
build: Update swc_core to v0.86.1 (vercel/turborepo#6171)
Browse files Browse the repository at this point in the history
### Description

Update SWC crates, to fix some regressions and improve compile time.

### Testing Instructions



Closes WEB-1774
  • Loading branch information
kdy1 committed Oct 17, 2023
1 parent a8e169d commit 3a5a675
Show file tree
Hide file tree
Showing 66 changed files with 3,170 additions and 3,182 deletions.
2 changes: 1 addition & 1 deletion crates/turbopack-css/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async fn parse_content(
};

let mut errors = Vec::new();
let mut parsed_stylesheet = match parse_file::<Stylesheet>(&fm, config, &mut errors) {
let mut parsed_stylesheet = match parse_file::<Stylesheet>(&fm, None, config, &mut errors) {
Ok(stylesheet) => stylesheet,
Err(e) => {
// TODO report in in a stream
Expand Down
12 changes: 0 additions & 12 deletions crates/turbopack-ecmascript/src/analyzer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ impl Display for ConstantString {
}
}

impl From<JsWord> for ConstantString {
fn from(v: JsWord) -> Self {
ConstantString::Word(v)
}
}

impl From<Atom> for ConstantString {
fn from(v: Atom) -> Self {
ConstantString::Atom(v)
Expand Down Expand Up @@ -455,12 +449,6 @@ impl From<&'_ str> for JsValue {
}
}

impl From<JsWord> for JsValue {
fn from(v: JsWord) -> Self {
ConstantValue::Str(ConstantString::Word(v)).into()
}
}

impl From<Atom> for JsValue {
fn from(v: Atom) -> Self {
ConstantValue::Str(ConstantString::Atom(v)).into()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
FreeVar {
var: FreeVar(
Atom('require' type=static),
"require",
),
ast_path: [
Program(
Expand Down Expand Up @@ -67,13 +67,13 @@
},
Call {
func: FreeVar(
Atom('require' type=static),
"require",
),
args: [
Value(
Variable(
(
Atom('x' type=static),
"x",
#2,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
[
Variable(
(
Atom('y' type=inline),
"y",
#2,
),
),
Constant(
Str(
Word(
Atom('.js' type=inline),
".js",
),
),
),
Expand All @@ -70,14 +70,14 @@
Constant(
Str(
Word(
Atom('hello' type=inline),
"hello",
),
),
),
Constant(
Str(
Word(
Atom('world' type=inline),
"world",
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
),
Variable(
(
Atom('y' type=inline),
"y",
#2,
),
),
Expand All @@ -24,7 +24,7 @@
"y",
Variable(
(
Atom('x' type=static),
"x",
#2,
),
),
Expand All @@ -33,7 +33,7 @@
"z",
Variable(
(
Atom('x' type=static),
"x",
#2,
),
),
Expand Down
Loading

0 comments on commit 3a5a675

Please sign in to comment.