Skip to content

Commit

Permalink
chore: update export conditions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Hebilicious authored and porsager committed Apr 9, 2024
1 parent 3eb4099 commit b8fa8f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "./types/index.d.ts",
"bun": "./src/index.js",
"worker": "./cf/src/index.js",
"workerd": "./cf/src/index.js",
"import": "./src/index.js",
"default": "./cjs/src/index.js"
},
Expand Down

0 comments on commit b8fa8f4

Please sign in to comment.