-
Notifications
You must be signed in to change notification settings - Fork 284
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
Create browser build for @arkecosystem/crypto
#3784
Comments
This webpack config did not work for me. I was successful shimming bigint by using
note the use of ProvidePlugin instead of DefinePlugin (and a different shim, using I also solved an issue with f.promisify by shimming util_1 which was used in This way I was succesful in building for Safari as well |
2 tasks
ghost
mentioned this issue
Jun 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The primary issue is the usage of native
BigInt
that cause issues in browsers like Safari. This should be polyfilled if the nativeBigInt
is not available.Replacing the native BigInt altogether is not a solution because the performance loss on node.js is too big with some of our new transaction types from AIP11.
https://github.com/ArkEcosystem/mobile-wallet/blob/develop/webpack.config.js#L44-L53
The text was updated successfully, but these errors were encountered: