Commit 9d2d81d
committed
The `workerd` and `worker` export conditions in `package.json` both resolve
to `index.server.js`, which re-exports `@sentry/node`. This falsely signals
Cloudflare Workers compatibility — bundlers targeting Workers resolve the
`workerd` condition and pull the full `@sentry/node` dependency tree
(including OpenTelemetry, undici, and `node:*` built-ins) into the Worker
bundle, causing silent module evaluation failure at runtime.
Remove these conditions so that Workers bundlers fall through to `browser`
(which resolves to `index.client.js` / `@sentry/browser`). This is a
packaging stopgap — proper Workers support would require a dedicated entry
using `@sentry/cloudflare`, tracked in #18669.
1 parent 119c06f commit 9d2d81d
1 file changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 22 | | |
31 | 23 | | |
32 | 24 | | |
| |||
0 commit comments