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

Make sure that webpack build doesn’t end up requiring fs #499

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

vgrichina
Copy link
Contributor

@vgrichina vgrichina commented Feb 10, 2021

Fixes #397

@vgrichina vgrichina requested review from chadoh and volovyks February 10, 2021 09:10
@@ -1,6 +1,7 @@
import sha256 from 'js-sha256';
import { Signature, KeyPair, PublicKey } from './utils/key_pair';
import { KeyStore, InMemoryKeyStore } from './key_stores';
Copy link
Collaborator

@volovyks volovyks Feb 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this change?

Copy link
Contributor Author

@vgrichina vgrichina Feb 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug #397

Apparently webpack doesn’t care that only specific classes are imported, key stores module ends up depending on fs.

@vgrichina vgrichina merged commit 6d4e688 into master Feb 11, 2021
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.

Support or document a use in mixed (node.js and browser) environments (Can't resolve 'fs')
2 participants