Skip to content

Commit

Permalink
Bump swc
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jan 22, 2024
1 parent 9b85c80 commit 07d74bc
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 57 deletions.
112 changes: 56 additions & 56 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/transformers/js/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
crate-type = ["rlib"]

[dependencies]
swc_core = { version = "0.87.28", features = [
swc_core = { version = "0.88.0", features = [
"common",
"common_ahash",
"common_sourcemap",
Expand Down
6 changes: 6 additions & 0 deletions packages/transformers/js/core/src/hoist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl<'a> Fold for Hoist<'a> {
format!("{}:{}:{}", self.module_id, import.src.value, "esm").into(),
),
type_only: false,
phase: Default::default(),
})),
);
// Ensure that all import specifiers are constant.
Expand Down Expand Up @@ -204,6 +205,7 @@ impl<'a> Fold for Hoist<'a> {
raw: None,
}),
type_only: false,
phase: Default::default(),
})),
);

Expand Down Expand Up @@ -297,6 +299,7 @@ impl<'a> Fold for Hoist<'a> {
format!("{}:{}:{}", self.module_id, export.src.value, "esm").into(),
),
type_only: false,
phase: Default::default(),
})),
);
self.re_exports.push(ImportedSymbol {
Expand Down Expand Up @@ -405,6 +408,7 @@ impl<'a> Fold for Hoist<'a> {
raw: None,
}),
type_only: false,
phase: Default::default(),
})));

// Create variable assignments for any declarations that are not constant.
Expand Down Expand Up @@ -446,6 +450,7 @@ impl<'a> Fold for Hoist<'a> {
raw: None,
}),
type_only: false,
phase: Default::default(),
})));

self.handle_non_const_require(v, &source);
Expand Down Expand Up @@ -1002,6 +1007,7 @@ impl<'a> Hoist<'a> {
span: DUMMY_SP,
src: Box::new(src.into()),
type_only: false,
phase: Default::default(),
})));
}

Expand Down

0 comments on commit 07d74bc

Please sign in to comment.