Skip to content

Commit

Permalink
Make cloudflare package export (#2061)
Browse files Browse the repository at this point in the history
Cloudflare's runtime uses the "workerd" condition export key as described [here](https://developers.cloudflare.com/workers/wrangler/bundling/#conditional-exports) and [here](https://runtime-keys.proposal.wintercg.org/#workerd).

Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
  • Loading branch information
bitofbreeze and anniel-stripe committed Apr 22, 2024
1 parent d66abe7 commit e8ed1a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -88,6 +88,10 @@
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"workerd": {
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"default": {
"import": "./esm/stripe.esm.node.js",
"require": "./cjs/stripe.cjs.node.js"
Expand Down

0 comments on commit e8ed1a4

Please sign in to comment.