Unverified Commit 2de97220 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Revert "feat: Update `swc_core` to `v9.0.0`" (#73866)

Builds are failing on canary so attempting revert to allow investigation
separate

x-ref:
https://github.com/vercel/next.js/actions/runs/12292495270/job/34303267911
x-ref:
https://github.com/vercel/next.js/actions/runs/12292495270/job/34303267654
x-ref:
https://github.com/vercel/next.js/actions/runs/12292495270/job/34303267358


Reverts vercel/next.js#73696
parent 7061f942
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 = "9.0.0", features = [
swc_core = { version = "5.0.4", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
testing = { version = "5.0.0" }
testing = { version = "4.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.14"
modularize_imports = { version = "0.70.0" }
styled_components = { version = "0.98.0" }
styled_jsx = { version = "0.75.0" }
swc_emotion = { version = "0.74.0" }
swc_relay = { version = "0.46.0" }
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" }
# General Deps
chromiumoxide = { version = "0.5.4", features = [
......
......@@ -31,8 +31,8 @@ lazy_static = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
rustc-hash = { workspace = true }
react_remove_properties = "0.26.0"
remove_console = "0.27.0"
react_remove_properties = "0.24.25"
remove_console = "0.25.25"
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.26.0"
remove_console = "0.27.0"
react_remove_properties = "0.24.25"
remove_console = "0.25.25"
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 React.createElement("div", null);
return /*#__PURE__*/ React.createElement("div", null);
}
......@@ -29,7 +29,6 @@ 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,7 +6,6 @@ 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,
......@@ -97,7 +96,8 @@ impl CustomTransformer for EmotionTransformer {
#[cfg(feature = "transform_emotion")]
{
let hash = {
let mut hasher = FxHasher::default();
#[allow(clippy::disallowed_types)]
let mut hasher = std::collections::hash_map::DefaultHasher::new();
program.hash(&mut hasher);
hasher.finish()
};
......
......@@ -9,7 +9,7 @@
(func $set (export "set") (type $t1) (param $p i32)
(i32.store
(i32.const 0)
(local.get $p)))
(get_local $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: "eui1g2r0"
target: "ei3xcjv0"
})("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