Skip to content

Commit

Permalink
fixup! Prioritise workerd condition when bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Jan 27, 2023
1 parent 360bf76 commit fc3d4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixtures/isomorphic-random-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
This package implements an isomorphic library that generates cryptographically-strong pseudorandom numbers.
What this package does isn't really important here, the key part is the [`package.json`](./package.json)'s `exports` field.
Conditional exports provide a way to load a different file depending on where the module is being imported from.
By default, Wrangler will first try to look for a [**`workerd`** key](https://runtime-keys.proposal.wintercg.org/#workerd), then `worker`, then `browser`.
By default, Wrangler will try to look for a [**`workerd`** key](https://runtime-keys.proposal.wintercg.org/#workerd).
This allows you as a library developer to implement different behaviour for different JavaScript runtimes.

0 comments on commit fc3d4a7

Please sign in to comment.