Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

fix: do not transform exponentiation operator #96

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

achingbrain
Copy link
Contributor

@achingbrain achingbrain commented Dec 3, 2021

The babel-plugin-transform-exponentiation-operator Babel plugin transforms 1n ** 1n into Math.pow(1n, 1n) which doesn't work because Math.pow doesn't support BigInts - facebook/create-react-app#6907 (comment)

This is used in @noble/ed25519 which recently got added to libp2p-crypto - libp2p/js-libp2p-crypto#202

The fix is to change the "browsersList" setting to exclude ie and old android - hirosystems/stacks.js#1096 (comment)

The `babel-plugin-transform-exponentiation-operator ` Babel plugin transforms `1n ** 1n` into `Math.pow(1n, 1n)` which doesn't work because `Math.pow` doesn't support BigInts - facebook/create-react-app#6907 (comment)

The fix is to change the `"browsersList"` setting to exclude ie and old android - hirosystems/stacks.js#1096 (comment)
@achingbrain achingbrain merged commit 88d1897 into master Dec 3, 2021
@achingbrain achingbrain deleted the fix/react-and-bigints branch December 3, 2021 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant