Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add browser shim #18

Merged
merged 7 commits into from
Mar 13, 2025
Merged

fix: add browser shim #18

merged 7 commits into from
Mar 13, 2025

Conversation

achingbrain
Copy link
Collaborator

To allow importing the module in browsers, add a shim that will throw if it's actually used.

Simplifies writing isomorphic code where we may configure libp2p in different ways based on the environment, but we don't have to worry about importing this but not importing that.

To allow importing the module in browsers, add a shim that will
throw if it's actually used.

Simplifies writing isomorphic code where we may configure libp2p
in different ways based on the environment, but we don't have to
worry about `import`ing this but not `import`ing that.
@achingbrain achingbrain force-pushed the fix/add-browser-shim branch from d47ca75 to d5882b6 Compare March 13, 2025 13:32
@achingbrain achingbrain merged commit 557234d into main Mar 13, 2025
15 checks passed
This was referenced Mar 13, 2025
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.

1 participant