Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Update swc_core to v0.86.1 #6171

Merged
merged 12 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
526 changes: 392 additions & 134 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ async-recursion = "1.0.2"
# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.12.2" }

mdxjs = "0.1.17"
modularize_imports = { version = "0.48.0" }
styled_components = { version = "0.75.0" }
styled_jsx = { version = "0.52.0" }
swc_core = { version = "0.83.28", features = [
mdxjs = "0.1.19"
modularize_imports = { version = "0.50.0" }
styled_components = { version = "0.77.0" }
styled_jsx = { version = "0.54.0" }
swc_core = { version = "0.86.1", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
swc_emotion = { version = "0.51.0" }
swc_relay = { version = "0.23.0" }
testing = { version = "0.34.1" }
swc_emotion = { version = "0.53.0" }
swc_relay = { version = "0.25.0" }
testing = { version = "0.35.0" }

auto-hash-map = { path = "crates/turbo-tasks-auto-hash-map" }
node-file-trace = { path = "crates/node-file-trace", default-features = false }
Expand Down
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
Loading