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:
Donny/강동윤 2023-01-11 09:37:58 +09:00 committed by GitHub
parent 4c84ecc54c
commit 477d081341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 439 additions and 321 deletions

File diff suppressed because it is too large Load diff

View file

@ -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",
] }

View file

@ -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();

View file

@ -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",

View file

@ -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(|| {

View file

@ -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",
] }