Skip to content

Commit b8fa8f4

Browse files
Hebiliciousporsager
authored andcommitted
chore: update export conditions
Hello there ! The official runtime export key for cloudflare is `workerd` (not worker). I believe many apps out there might already be relying on `worker` so I propose to add it alongside it. Reference : - https://developers.cloudflare.com/workers/wrangler/bundling/#conditional-exports - https://runtime-keys.proposal.wintercg.org/#workerd
1 parent 3eb4099 commit b8fa8f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"types": "./types/index.d.ts",
1010
"bun": "./src/index.js",
1111
"worker": "./cf/src/index.js",
12+
"workerd": "./cf/src/index.js",
1213
"import": "./src/index.js",
1314
"default": "./cjs/src/index.js"
1415
},

0 commit comments

Comments
 (0)