Skip to content

Conversation

@Hebilicious
Copy link
Contributor

@Hebilicious Hebilicious commented Feb 28, 2024

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 :

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
@porsager
Copy link
Owner

porsager commented Mar 23, 2024

Read from here on down for why it was changed from workerd to worker originally. #618 (comment)

Would be great to get a confirmation from cloudflare if they now think workerd is the way to go before merging, but my own tests seem to have no problems with workerd

@elithrar
Copy link
Contributor

elithrar commented Apr 9, 2024

@porsager - workerd is the correct export. Also see https://runtime-keys.proposal.wintercg.org/#workerd

@porsager
Copy link
Owner

porsager commented Apr 9, 2024

I'll merge this and remove the worker export for now, as it appears the cases where the worker export is requested actually needs the default esm export.

@porsager porsager merged commit b8fa8f4 into porsager:master Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants