Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: link upstream swc issue in minifier-workaround comments (LFE-10645) (#14773)

Nikita Kabardin03c9a4d6bc4b
diff --git a/scripts/scan-client-bundle.mjs b/scripts/scan-client-bundle.mjs
index 820cb6f79c..a07ed42f04 100644
--- a/scripts/scan-client-bundle.mjs
+++ b/scripts/scan-client-bundle.mjs
@@ -32,7 +32,8 @@
* minifier while code still reads it. The canonical first-party fix is to
* move the module-level const into the (single) function that reads it — see
* the LFE-10640 fix in TraceLayoutDesktop.tsx (#14735) — and to link the
- * upstream SWC issue in a comment so the workaround is deletable once fixed.
+ * upstream SWC issue (swc-project/swc#11983) in a comment so the workaround
+ * is deletable once fixed.
* For vendored dependency code, change how the dependency is shipped (see the
* prettier/plugins/typescript → babel-ts swap in #14738).
*/
diff --git a/web/src/components/trace/components/_layout/TraceLayoutDesktop.tsx b/web/src/components/trace/components/_layout/TraceLayoutDesktop.tsx
index 7ed1d82c80..c1b1a99687 100644
--- a/web/src/components/trace/components/_layout/TraceLayoutDesktop.tsx
+++ b/web/src/components/trace/components/_layout/TraceLayoutDesktop.tsx
@@ -120,7 +120,8 @@ const NOOP_LAYOUT_STORAGE = {
// single-use top-level const it tripped the SWC prod minifier's dropped-binding
// bug — the declaration was deleted while this function's inlined body kept the
// reference, throwing `ReferenceError` on peek open (LFE-10640; the CI
-// client-bundle scan now guards the class, LFE-10645).
+// client-bundle scan now guards the class, LFE-10645). Delete this workaround
+// once swc-project/swc#11983 is fixed in the Next-vendored swc_core.
function collapsedShareMaxForWidth(groupWidthPx: number): number {
const boundaryPx = (COLLAPSED_PANEL_PX + NAVIGATION_PANEL_MIN_PX) / 2;
return (boundaryPx / groupWidthPx) * 100;