You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(v10/server-utils): Stop shipping orchestrion bundler plugins as production dependencies (#23667)
Backport of: #22443Closes: #23611
`@sentry/server-utils` shipped the orchestrion bundler plugins and a
full JavaScript parser toolchain (meriyah, esquery, astring, source-map)
as production dependencies, so every consumer of `@sentry/node`
installed roughly 5 MB of code that no runtime path reaches unless they
opt into diagnostics-channel injection. The orchestrion runtime chain is
now compiled into this package's own build, and all `@apm-js-collab/*`
packages plus meriyah become devDependencies. Production dependencies
are down to `@sentry/conventions` and `@sentry/core`.
## Differences to the original PR
- `packages/server-utils/src/orchestrion/runtime/register.ts`: kept
`RegisterDiagnosticsChannelInjectionOptions` and the optional parameter
on `registerDiagnosticsChannelInjection()`, now deprecated and ignored.
The original deletes both; on v10 the option is reachable through the
public `experimentalUseDiagnosticsChannelInjection(options)`, so
removing it would be a compile error for anyone passing
`tracingHooksDir`.
- `packages/node/src/sdk/experimentalUseDiagnosticsChannelInjection.ts`:
same reason, the optional parameter stays.
- `packages/server-utils/src/orchestrion/runtime/register.ts`: kept
v10's loader-thread guard (`isMainThread` / `parentPort`), which landed
after the v10 branch point and is not in the original.
-
`packages/nextjs/src/config/withSentryConfig/getFinalConfigObjectUtils.ts`
and `getFinalConfigObject.ts`: removed
`maybeAddOutputFileTracingIncludes` plus its tests in
`packages/nextjs/test/config/withSentryConfig.test.ts`. That
`@vercel/nft` force-include is a v10-only workaround for meriyah's
`module-sync` exports map (#23034), which bundling removes. `develop`
never carried it, so this brings both branches to the same state.
---------
Co-authored-by: Tim Fish <tim@timfish.uk>
0 commit comments