From 8c109da85da78f4472658efc5442baec19846760 Mon Sep 17 00:00:00 2001 From: John Rees Date: Fri, 21 Jan 2022 01:47:48 +0000 Subject: [PATCH] add browser field to use cjs build in browsers temporary workaround to make it less annoying than having to include `@babel/plugin-proposal-class-properties` (https://git.io/vb4SL) with webpack builds --- packages/governance-sdk/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/governance-sdk/package.json b/packages/governance-sdk/package.json index a247ea49..fc664bda 100644 --- a/packages/governance-sdk/package.json +++ b/packages/governance-sdk/package.json @@ -6,6 +6,7 @@ "homepage": "https://github.com/solana-labs/oyster/blob/main/packages/governance-sdk/README.md", "license": "MIT", "main": "lib/cjs/index.js", + "browser": "lib/cjs/index.js", "module": "lib/mjs/index.js", "types": "lib/mjs/index.d.ts", "source": "src/index.ts",