Skip to content

Commit

Permalink
Replace browserslist with supports bigint (#279)
Browse files Browse the repository at this point in the history
- Currently `2n ** n` is being compiled incorrectly to `Math.pow(2, n)`.
This doesn't work where n is a bigint. In practice this has broken the
genesis epoch page
- Adding bigint support to browserslist stops the build making this change
  • Loading branch information
mcintyre94 authored Jul 21, 2023
1 parent 47006f0 commit c04e5ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@
"prettier": "@solana/prettier-config-solana",
"browserslist": {
"production": [
">0.2%",
"not dead",
">0.2% and supports bigint and not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 1 safari version",
"supports bigint"
]
},
"pnpm": {
Expand Down

1 comment on commit c04e5ee

@vercel
Copy link

@vercel vercel bot commented on c04e5ee Jul 21, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

explorer – ./

explorer-solana-labs.vercel.app
explorer-git-master-solana-labs.vercel.app
explorer.solana.com

Please sign in to comment.