chore: Update swc_core
to v0.53.0
(#44707)
This PR updates SWC crates to
a225efe363
Blocked by https://github.com/vercel/turbo/pull/3210
This commit is contained in:
parent
4c84ecc54c
commit
477d081341
6 changed files with 439 additions and 321 deletions
739
packages/next-swc/Cargo.lock
generated
739
packages/next-swc/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,7 @@ serde = "1"
|
|||
serde_json = "1"
|
||||
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
|
||||
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "079505baf1ce03707d28b6c0afb158dca601a11a", features = [
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "782143593280ed51dbd7b72dd86ebbd84d8e63d8", features = [
|
||||
"__swc_core",
|
||||
"__swc_core_next_core",
|
||||
"__swc_transform_styled_jsx",
|
||||
|
@ -29,7 +29,7 @@ next-binding = { git = "https://github.com/vercel/turbo.git", rev = "079505baf1c
|
|||
] }
|
||||
|
||||
[dev-dependencies]
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "079505baf1ce03707d28b6c0afb158dca601a11a", features = [
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "782143593280ed51dbd7b72dd86ebbd84d8e63d8", features = [
|
||||
"__swc_core_testing_transform",
|
||||
"__swc_testing",
|
||||
] }
|
||||
|
|
|
@ -13,8 +13,8 @@ import r from "other";
|
|||
var u = [], l = !0, i = !1;
|
||||
try {
|
||||
for(o = o.call(t); !(l = (n = o.next()).done) && (u.push(n.value), !r || u.length !== r); l = !0);
|
||||
} catch (a) {
|
||||
i = !0, e = a;
|
||||
} catch (t) {
|
||||
i = !0, e = t;
|
||||
} finally{
|
||||
try {
|
||||
l || null == o.return || o.return();
|
||||
|
|
|
@ -39,7 +39,7 @@ tracing = { version = "0.1.37", features = ["release_max_level_info"] }
|
|||
tracing-futures = "0.2.5"
|
||||
tracing-subscriber = "0.3.9"
|
||||
tracing-chrome = "0.5.0"
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "079505baf1ce03707d28b6c0afb158dca601a11a", features = [
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "782143593280ed51dbd7b72dd86ebbd84d8e63d8", features = [
|
||||
"__swc_core_binding_napi",
|
||||
"__turbo_next_dev_server",
|
||||
"__turbo_node_file_trace",
|
||||
|
|
|
@ -61,6 +61,11 @@ pub struct TransformTask {
|
|||
pub options: Buffer,
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn skip_filename() -> bool {
|
||||
cfg!(debug_assertions)
|
||||
}
|
||||
|
||||
impl Task for TransformTask {
|
||||
type Output = (TransformOutput, FxHashSet<String>);
|
||||
type JsValue = Object;
|
||||
|
@ -72,8 +77,8 @@ impl Task for TransformTask {
|
|||
try_with_handler(
|
||||
self.c.cm.clone(),
|
||||
next_binding::swc::core::base::HandlerOpts {
|
||||
color: ColorConfig::Never,
|
||||
skip_filename: true,
|
||||
color: ColorConfig::Always,
|
||||
skip_filename: skip_filename(),
|
||||
},
|
||||
|handler| {
|
||||
self.c.run(|| {
|
||||
|
|
|
@ -31,7 +31,7 @@ wasm-bindgen-futures = "0.4.8"
|
|||
getrandom = { version = "0.2.5", optional = true, default-features = false }
|
||||
js-sys = "0.3.59"
|
||||
serde-wasm-bindgen = "0.4.3"
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "079505baf1ce03707d28b6c0afb158dca601a11a", features = [
|
||||
next-binding = { git = "https://github.com/vercel/turbo.git", rev = "782143593280ed51dbd7b72dd86ebbd84d8e63d8", features = [
|
||||
"__swc_core_binding_wasm",
|
||||
"__feature_mdx_rs",
|
||||
] }
|
||||
|
|
Loading…
Reference in a new issue