Skip to content

Conversation

panva
Copy link

@panva panva commented Jul 31, 2025

This PR adds a subpath export so that eta/core can be imported/required in runtimes without "node:fs", i.e. CF Workers.

@bgub
Copy link
Collaborator

bgub commented Jul 31, 2025

Looks good to me, but shouldn't the "browser" in the export already make it available to browsers?

@panva
Copy link
Author

panva commented Aug 1, 2025

For when you don't know the target runtime but need to make sure no "fs" is required I guess?

It happens with wrangler, turbopack that when they get a whiff of a node builtin they either start including subpar polyfills or outright don't allow your code to bundle.

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.

2 participants