Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Run the orchestrion transform on browser modules

未关闭
#24,677 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@chargome 已经在做这个了。

开始于 2026年9月24日。

评估

这个 Issue 还没有评估数据。

描述

Remix

Run the orchestrion code transform on browser modules, through the asset server's loader chain, so client side instrumentation works without a bundler.

  • Add a loader that applies the transform to modules under node_modules, resolving the package name and version from the file path.
  • Point orchestrion's dcModule at our browser diagnostics_channel shim.
  • Patch run in @remix-run/ui so component render errors are captured with no application code.

This is the only compile time hook in the Remix 3 client pipeline. It also matters for remix/spa, where the same fetch-router runs in the browser and the Node module hook can never reach it.

Three things have to line up, and each one fails differently:

  • The shim must implement the low level channel API the injected code calls: ch.start.runStores, ch.error.publish, ch.end.publish. The traceSync helpers are not what it uses.
  • ModuleType must be lower case esm. Anything else silently emits a CommonJS require, which the asset server cannot serve.
  • The shim is referenced by public URL and must be in scripts.external, percent encoded exactly as the asset server encodes its own rewrites. A bare specifier does not resolve under pnpm. A mismatch loads two copies of the shim, giving two subscriber registries and no instrumentation, with no error anywhere.

Done when e2e confirms the transform is applied to a served browser module, the injected channel fires in the browser, and a component render error reaches Sentry with mechanism auto.ui.remix_v3.

主要语言
TypeScript
星标
8.7k
派生
1.9k
平均合并
1 天 16 小时
30 天内合并 PR
552

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。