From 35130013c3f2a225907d803437d17cc5ed39d503 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Mon, 27 Jul 2026 15:08:29 +0100 Subject: [PATCH] fix: Test removing some CJS/ESM switching --- .../server-utils/src/orchestrion/runtime/register.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/server-utils/src/orchestrion/runtime/register.ts b/packages/server-utils/src/orchestrion/runtime/register.ts index 0cdf73ac9b5a..65fad4fbd3a8 100644 --- a/packages/server-utils/src/orchestrion/runtime/register.ts +++ b/packages/server-utils/src/orchestrion/runtime/register.ts @@ -73,19 +73,10 @@ export function registerDiagnosticsChannelInjection(): void { // must use the stable `registerHooks` path above (or none at all). const diagnosticsPort = createDiagnosticsPort(); - let parentURL: string; - /*! rollup-include-cjs-only */ - parentURL = pathToFileURL(__filename).href; - /*! rollup-include-cjs-only-end */ - /*! rollup-include-esm-only */ - parentURL = import.meta.url; - /*! rollup-include-esm-only-end */ - // Our own bundled copy of the tracing-hooks async hooks (see // `src/orchestrion/runtime/hook.mjs`) — the dependency itself is bundled into this package's // build and no longer resolvable as a bare specifier at runtime. mod.register('@sentry/server-utils/orchestrion/hook', { - parentURL, data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort }, transferList: [diagnosticsPort], });