-
Notifications
You must be signed in to change notification settings - Fork 26k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What? Update swc_core to `v0.79.22` and other SWC crates to the latest. ### Why? This is for further next.js work: https://vercel.slack.com/archives/C02HY34AKME/p1689768597095499 ### How? Closes WEB-1299 turbopack counterpart: vercel/turbo#5575 Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
211 additions
and
211 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 30 additions & 32 deletions
62
packages/next-swc/crates/core/tests/full/example/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,39 @@ | ||
function r(r, t) { | ||
(null == t || t > r.length) && (t = r.length); | ||
for(var n = 0, e = Array(t); n < t; n++)e[n] = r[n]; | ||
return e; | ||
function r(r, e) { | ||
(null == e || e > r.length) && (e = r.length); | ||
for(var n = 0, o = Array(e); n < e; n++)o[n] = r[n]; | ||
return o; | ||
} | ||
import t from "other"; | ||
(function(t, n) { | ||
return function(r) { | ||
if (Array.isArray(r)) return r; | ||
}(t) || function(r, t) { | ||
var n, e, o = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (null != o) { | ||
var a = [], l = !0, u = !1; | ||
((function(r) { | ||
if (Array.isArray(r)) return r; | ||
})(t) || function(r, e) { | ||
var n, o, a = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (null != a) { | ||
var l = [], u = !0, i = !1; | ||
try { | ||
for(a = a.call(r); !(u = (n = a.next()).done) && (l.push(n.value), !e || l.length !== e); u = !0); | ||
} catch (r) { | ||
i = !0, o = r; | ||
} finally{ | ||
try { | ||
for(o = o.call(r); !(l = (n = o.next()).done) && (a.push(n.value), !t || a.length !== t); l = !0); | ||
} catch (r) { | ||
u = !0, e = r; | ||
u || null == a.return || a.return(); | ||
} finally{ | ||
try { | ||
l || null == o.return || o.return(); | ||
} finally{ | ||
if (u) throw e; | ||
} | ||
if (i) throw o; | ||
} | ||
return a; | ||
} | ||
}(t, n) || function(t, n) { | ||
if (t) { | ||
if ("string" == typeof t) return r(t, n); | ||
var e = Object.prototype.toString.call(t).slice(8, -1); | ||
if ("Object" === e && t.constructor && (e = t.constructor.name), "Map" === e || "Set" === e) return Array.from(e); | ||
if ("Arguments" === e || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return r(t, n); | ||
} | ||
}(t, n) || function() { | ||
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
}(); | ||
})(t, 1)[0]; | ||
return l; | ||
} | ||
}(t, 1) || function(e, n) { | ||
if (e) { | ||
if ("string" == typeof e) return r(e, n); | ||
var o = Object.prototype.toString.call(e).slice(8, -1); | ||
if ("Object" === o && e.constructor && (o = e.constructor.name), "Map" === o || "Set" === o) return Array.from(o); | ||
if ("Arguments" === o || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return r(e, n); | ||
} | ||
}(t, 1) || function() { | ||
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
}())[0]; | ||
export var __N_SSG = !0; | ||
export default function n() { | ||
export default function e() { | ||
return React.createElement("div", null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.