Unverified Commit 23c46498 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

[backport] Upgrade to swc 54 (#88207) (#89103)

Backports #88207
For this issue https://github.com/vercel/next.js/issues/88822

Also includes https://github.com/vercel/next.js/pull/89066/changes/df12b894f9e7d9a15b8b159d260793b8f810ed68 to get CI working
parent acba4a6b
This diff is collapsed.
......@@ -339,7 +339,7 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
# SWC crates
swc_core = { version = "50.2.3", features = [
swc_core = { version = "54.0.0", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
"parallel_rayon",
......@@ -350,13 +350,13 @@ testing = "19.0.0"
# Keep consistent with preset_env_base through swc_core
browserslist-rs = "0.19.0"
mdxjs = "1.0.3"
modularize_imports = "0.105.0"
styled_components = "0.133.0"
styled_jsx = "0.108.0"
swc_emotion = "0.109.0"
swc_relay = "0.79.0"
react_remove_properties = "0.59.0"
remove_console = "0.60.0"
modularize_imports = "0.108.0"
styled_components = "0.136.0"
styled_jsx = "0.111.0"
swc_emotion = "0.112.0"
swc_relay = "0.82.0"
react_remove_properties = "0.62.0"
remove_console = "0.63.0"
preset_env_base = "6.0.0"
......
var _my_array;
var _ref;
var _my_array;
var test = (_ref = (_my_array = my_array) === null || _my_array === void 0 ? void 0 : _my_array[0]) !== null && _ref !== void 0 ? _ref : [];
......@@ -2201,7 +2201,7 @@ export async function copy_ncced(task) {
export async function ncc(task, opts) {
await task
.clear('src/compiled')
// .clear('src/compiled') // TODO: Re-enabled once npm issues are resolved.
.parallel(
[
'ncc_safe_stable_stringify',
......@@ -2332,7 +2332,7 @@ export async function ncc(task, opts) {
'copy_babel_runtime',
'copy_vercel_og',
'copy_constants_browserify',
'copy_vendor_react',
// 'copy_vendor_react', // TODO: Re-enable once npm issues are resolved.
'ncc_sass_loader',
'ncc_jest_worker',
'ncc_edge_runtime_cookies',
......
error - [analysis] /turbopack/crates/turbopack-tests/tests/execution/turbopack/exports/invalid-export-parse-error/input/invalid-export/broken.js:2:16 Parsing ecmascript source code failed
error - [analysis] /turbopack/crates/turbopack-tests/tests/execution/turbopack/exports/invalid-export-parse-error/input/invalid-export/broken.js:3:0 Parsing ecmascript source code failed
1 | export const a = 42
+ v
2 + export const b =
+ ^
3 |
2 | export const b =
+ v
3 +
+ ^
Expression expected
......
......@@ -1168,8 +1168,8 @@ function loadChunkPath(sourceType, sourceData, chunkPath) {
/**
* Returns an absolute url to an asset.
*/ function resolvePathFromModule(moduleId) {
var exported = this.r(moduleId);
var _ref;
var exported = this.r(moduleId);
return (_ref = exported === null || exported === void 0 ? void 0 : exported.default) !== null && _ref !== void 0 ? _ref : exported;
}
browserContextPrototype.R = resolvePathFromModule;
......
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