From c04e5eefb1f4dd9e84875493fee8ffd054c05114 Mon Sep 17 00:00:00 2001 From: Callum McIntyre Date: Fri, 21 Jul 2023 11:18:25 +0100 Subject: [PATCH] Replace browserslist with supports bigint (#279) - 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 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2edb1cb4..30efd9b4 100644 --- a/package.json +++ b/package.json @@ -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": {