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: ...@@ -221,7 +221,7 @@ jobs:
build: >- build: >-
set -ex && set -ex &&
apk update && 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 show &&
rustup target add x86_64-unknown-linux-musl && rustup target add x86_64-unknown-linux-musl &&
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" && npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
...@@ -261,7 +261,7 @@ jobs: ...@@ -261,7 +261,7 @@ jobs:
build: >- build: >-
set -ex && set -ex &&
apk update && 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 && export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" && npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
rustup show && rustup show &&
......
This diff is collapsed.
...@@ -91,21 +91,21 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" } ...@@ -91,21 +91,21 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" } turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
# SWC crates # SWC crates
swc_core = { version = "5.0.4", features = [ swc_core = { version = "10.1.0", features = [
"ecma_loader_lru", "ecma_loader_lru",
"ecma_loader_parking_lot", "ecma_loader_parking_lot",
] } ] }
testing = { version = "4.0.0" } testing = { version = "5.0.0" }
# Keep consistent with preset_env_base through swc_core # Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.16.0" } browserslist-rs = { version = "0.16.0" }
miette = { version = "5.10.0", features = ["fancy"] } miette = { version = "5.10.0", features = ["fancy"] }
mdxjs = "0.2.13" mdxjs = "0.2.15"
modularize_imports = { version = "0.68.30" } modularize_imports = { version = "0.70.1" }
styled_components = { version = "0.96.28" } styled_components = { version = "0.98.1" }
styled_jsx = { version = "0.73.40" } styled_jsx = { version = "0.75.1" }
swc_emotion = { version = "0.72.28" } swc_emotion = { version = "0.74.1" }
swc_relay = { version = "0.44.30" } swc_relay = { version = "0.46.1" }
# General Deps # General Deps
chromiumoxide = { version = "0.5.4", features = [ chromiumoxide = { version = "0.5.4", features = [
...@@ -219,3 +219,8 @@ webbrowser = "0.8.7" ...@@ -219,3 +219,8 @@ webbrowser = "0.8.7"
[patch.crates-io] [patch.crates-io]
sourcemap = { git = "https://github.com/wbinnssmith/rust-sourcemap", branch = "wbinnssmith/ignore-list" } 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 } ...@@ -31,8 +31,8 @@ lazy_static = { workspace = true }
thiserror = { workspace = true } thiserror = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
rustc-hash = { workspace = true } rustc-hash = { workspace = true }
react_remove_properties = "0.24.25" react_remove_properties = "0.26.1"
remove_console = "0.25.25" remove_console = "0.27.1"
auto-hash-map = { workspace = true } auto-hash-map = { workspace = true }
......
...@@ -58,8 +58,8 @@ swc_relay = { workspace = true } ...@@ -58,8 +58,8 @@ swc_relay = { workspace = true }
turbopack-ecmascript-plugins = { workspace = true, optional = true } turbopack-ecmascript-plugins = { workspace = true, optional = true }
turbo-rcstr = { workspace = true } turbo-rcstr = { workspace = true }
react_remove_properties = "0.24.25" react_remove_properties = "0.26.1"
remove_console = "0.25.25" remove_console = "0.27.1"
preset_env_base = "1.0.0" preset_env_base = "1.0.0"
[dev-dependencies] [dev-dependencies]
......
...@@ -4,5 +4,5 @@ import r from 'other'; ...@@ -4,5 +4,5 @@ import r from 'other';
e(r, 1)[0]; e(r, 1)[0];
export var __N_SSG = !0; export var __N_SSG = !0;
export default function t() { export default function t() {
return /*#__PURE__*/ React.createElement("div", null); return React.createElement("div", null);
} }
...@@ -29,6 +29,7 @@ lightningcss = { workspace = true } ...@@ -29,6 +29,7 @@ lightningcss = { workspace = true }
serde = { workspace = true } serde = { workspace = true }
serde_json = { workspace = true } serde_json = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
rustc-hash = { workspace = true }
turbo-rcstr = { workspace = true } turbo-rcstr = { workspace = true }
turbo-tasks = { workspace = true } turbo-tasks = { workspace = true }
......
...@@ -6,6 +6,7 @@ use std::{ ...@@ -6,6 +6,7 @@ use std::{
use anyhow::Result; use anyhow::Result;
use async_trait::async_trait; use async_trait::async_trait;
use rustc_hash::FxHasher;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use swc_core::{ use swc_core::{
common::util::take::Take, common::util::take::Take,
...@@ -98,8 +99,7 @@ impl CustomTransformer for EmotionTransformer { ...@@ -98,8 +99,7 @@ impl CustomTransformer for EmotionTransformer {
#[cfg(feature = "transform_emotion")] #[cfg(feature = "transform_emotion")]
{ {
let hash = { let hash = {
#[allow(clippy::disallowed_types)] let mut hasher = FxHasher::default();
let mut hasher = std::collections::hash_map::DefaultHasher::new();
program.hash(&mut hasher); program.hash(&mut hasher);
hasher.finish() hasher.finish()
}; };
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
(func $set (export "set") (type $t1) (param $p i32) (func $set (export "set") (type $t1) (param $p i32)
(i32.store (i32.store
(i32.const 0) (i32.const 0)
(get_local $p))) (local.get $p)))
(func $getNumber (export "getNumber") (type $t0) (result i32) (func $getNumber (export "getNumber") (type $t0) (result i32)
(call $getRandomNumber)) (call $getRandomNumber))
) )
...@@ -13,7 +13,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -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", { 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;"); })("background:blue;");
function ClassNameButton({ children }) { 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", { 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