Skip to content

Commit 9d2d81d

Browse files
committed
fix(tanstackstart-react): remove misleading workerd/worker export conditions (#20038)
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

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/tanstackstart-react/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
"./package.json": "./package.json",
2020
".": {
2121
"types": "./build/types/index.types.d.ts",
22-
"workerd": {
23-
"import": "./build/esm/index.server.js",
24-
"require": "./build/cjs/index.server.js"
25-
},
26-
"worker": {
27-
"import": "./build/esm/index.server.js",
28-
"require": "./build/cjs/index.server.js"
29-
},
3022
"browser": {
3123
"import": "./build/esm/index.client.js",
3224
"require": "./build/cjs/index.client.js"

0 commit comments

Comments
 (0)