Unverified Commit da37eeeb authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Backport (16.1.x): Turbopack: Update to swc_core v50.2.3 (#87841) (#88296)

This is a backport of https://github.com/vercel/next.js/pull/87841 to the `next-16-1` branch.
parent 3aa53984
This diff is collapsed.
......@@ -288,7 +288,7 @@ debug = true
next-api = { path = "crates/next-api" }
next-build = { path = "crates/next-build" }
next-core = { path = "crates/next-core" }
next-custom-transforms = { path = "crates/next-custom-transforms" }
next-custom-transforms = { path = "crates/next-custom-transforms", default-features = false }
next-taskless = { path = "crates/next-taskless" }
# Turbopack
......@@ -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 = "49.0.0", features = [
swc_core = { version = "50.2.3", 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.104.0"
styled_components = "0.132.0"
styled_jsx = "0.107.0"
swc_emotion = "0.108.0"
swc_relay = "0.78.0"
react_remove_properties = "0.58.0"
remove_console = "0.59.0"
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"
preset_env_base = "6.0.0"
......@@ -484,4 +484,4 @@ webbrowser = "1.0.6"
[patch.crates-io]
bincode = { git = "https://github.com/bgw/bincode.git", branch = "bgw/patches" }
virtue = { git = "https://github.com/bgw/virtue.git", branch = "bgw/fix-generic-default-parsing" }
mdxjs = { git = "https://github.com/mischnic/mdxjs-rs.git", branch = "swc-core-32" }
mdxjs = { git = "https://github.com/vercel-labs/mdxjs-rs-turbopack.git", branch = "turbopack" }
var _my_array;
var _my_array_;
var test = (_my_array_ = (_my_array = my_array) === null || _my_array === void 0 ? void 0 : _my_array[0]) !== null && _my_array_ !== void 0 ? _my_array_ : [];
var _ref;
var test = (_ref = (_my_array = my_array) === null || _my_array === void 0 ? void 0 : _my_array[0]) !== null && _ref !== void 0 ? _ref : [];
......@@ -72,9 +72,17 @@ function _ts_generator(thisArg, body) {
},
trys: [],
ops: []
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
return this;
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
return d(g, "next", {
value: verb(0)
}), d(g, "throw", {
value: verb(1)
}), d(g, "return", {
value: verb(2)
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
value: function() {
return this;
}
}), g;
function verb(n) {
return function(v) {
......@@ -799,9 +807,17 @@ function _ts_generator(thisArg, body) {
},
trys: [],
ops: []
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
return this;
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
return d(g, "next", {
value: verb(0)
}), d(g, "throw", {
value: verb(1)
}), d(g, "return", {
value: verb(2)
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
value: function() {
return this;
}
}), g;
function verb(n) {
return function(v) {
......@@ -1153,8 +1169,8 @@ function loadChunkPath(sourceType, sourceData, chunkPath) {
* Returns an absolute url to an asset.
*/ function resolvePathFromModule(moduleId) {
var exported = this.r(moduleId);
var _exported_default;
return (_exported_default = exported === null || exported === void 0 ? void 0 : exported.default) !== null && _exported_default !== void 0 ? _exported_default : exported;
var _ref;
return (_ref = exported === null || exported === void 0 ? void 0 : exported.default) !== null && _ref !== void 0 ? _ref : exported;
}
browserContextPrototype.R = resolvePathFromModule;
/**
......@@ -1339,9 +1355,17 @@ function _ts_generator(thisArg, body) {
},
trys: [],
ops: []
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
return this;
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
return d(g, "next", {
value: verb(0)
}), d(g, "throw", {
value: verb(1)
}), d(g, "return", {
value: verb(2)
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
value: function() {
return this;
}
}), g;
function verb(n) {
return function(v) {
......
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