Unverified Commit da3f7820 authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

build: Update `swc_core` to `v10.1.0` (#74580)

### What?

Update swc crates to https://github.com/swc-project/swc/releases/tag/swc_core%40v10.1.0



### Why?

To apply https://github.com/vercel/next.js/pull/73696 and parallelization improvements.

### How?
parent d29f2f9a
......@@ -221,7 +221,7 @@ jobs:
build: >-
set -ex &&
apk update &&
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev &&
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm-dev &&
rustup show &&
rustup target add x86_64-unknown-linux-musl &&
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
......@@ -261,7 +261,7 @@ jobs:
build: >-
set -ex &&
apk update &&
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev &&
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm-dev &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
rustup show &&
......
This diff is collapsed.
......@@ -91,21 +91,21 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
# SWC crates
swc_core = { version = "5.0.4", features = [
swc_core = { version = "10.1.0", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
testing = { version = "4.0.0" }
testing = { version = "5.0.0" }
# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.16.0" }
miette = { version = "5.10.0", features = ["fancy"] }
mdxjs = "0.2.13"
modularize_imports = { version = "0.68.30" }
styled_components = { version = "0.96.28" }
styled_jsx = { version = "0.73.40" }
swc_emotion = { version = "0.72.28" }
swc_relay = { version = "0.44.30" }
mdxjs = "0.2.15"
modularize_imports = { version = "0.70.1" }
styled_components = { version = "0.98.1" }
styled_jsx = { version = "0.75.1" }
swc_emotion = { version = "0.74.1" }
swc_relay = { version = "0.46.1" }
# General Deps
chromiumoxide = { version = "0.5.4", features = [
......@@ -219,3 +219,8 @@ webbrowser = "0.8.7"
[patch.crates-io]
sourcemap = { git = "https://github.com/wbinnssmith/rust-sourcemap", branch = "wbinnssmith/ignore-list" }
# Remove this once https://github.com/wasmerio/wasmer/pull/5333 is merged and released
wasmer = { git = "https://github.com/kdy1/wasmer", branch = "build-deps" }
wasmer-cache = { git = "https://github.com/kdy1/wasmer", branch = "build-deps" }
wasmer-compiler-cranelift = { git = "https://github.com/kdy1/wasmer", branch = "build-deps" }
wasmer-wasix = { git = "https://github.com/kdy1/wasmer", branch = "build-deps" }
\ No newline at end of file
......@@ -31,8 +31,8 @@ lazy_static = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
rustc-hash = { workspace = true }
react_remove_properties = "0.24.25"
remove_console = "0.25.25"
react_remove_properties = "0.26.1"
remove_console = "0.27.1"
auto-hash-map = { workspace = true }
......
......@@ -58,8 +58,8 @@ swc_relay = { workspace = true }
turbopack-ecmascript-plugins = { workspace = true, optional = true }
turbo-rcstr = { workspace = true }
react_remove_properties = "0.24.25"
remove_console = "0.25.25"
react_remove_properties = "0.26.1"
remove_console = "0.27.1"
preset_env_base = "1.0.0"
[dev-dependencies]
......
......@@ -4,5 +4,5 @@ import r from 'other';
e(r, 1)[0];
export var __N_SSG = !0;
export default function t() {
return /*#__PURE__*/ React.createElement("div", null);
return React.createElement("div", null);
}
......@@ -29,6 +29,7 @@ lightningcss = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
rustc-hash = { workspace = true }
turbo-rcstr = { workspace = true }
turbo-tasks = { workspace = true }
......
......@@ -6,6 +6,7 @@ use std::{
use anyhow::Result;
use async_trait::async_trait;
use rustc_hash::FxHasher;
use serde::{Deserialize, Serialize};
use swc_core::{
common::util::take::Take,
......@@ -98,8 +99,7 @@ impl CustomTransformer for EmotionTransformer {
#[cfg(feature = "transform_emotion")]
{
let hash = {
#[allow(clippy::disallowed_types)]
let mut hasher = std::collections::hash_map::DefaultHasher::new();
let mut hasher = FxHasher::default();
program.hash(&mut hasher);
hasher.finish()
};
......
......@@ -9,7 +9,7 @@
(func $set (export "set") (type $t1) (param $p i32)
(i32.store
(i32.const 0)
(get_local $p)))
(local.get $p)))
(func $getNumber (export "getNumber") (type $t0) (result i32)
(call $getRandomNumber))
)
......@@ -13,7 +13,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
;
;
const StyledButton = /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$styled$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__["default"])("button", {
target: "ei3xcjv0"
target: "eui1g2r0"
})("background:blue;");
function ClassNameButton({ children }) {
return /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$node_modules$2f40$emotion$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$test$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment