From c6910dacf40715162d8bb8eef7d359c9729a8251 Mon Sep 17 00:00:00 2001 From: freedomhero Date: Tue, 16 Mar 2021 16:35:01 +0800 Subject: [PATCH] ignore fs & child_process in browser env --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a29e865..22705a35 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,16 @@ { "name": "scryptlib", - "version": "0.3.1", + "version": "0.3.2-beta1", "description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.", "engines": { "node": ">=12.0.0" }, "main": "dist/index.js", "types": "dist", + "browser":{ + "child_process": false, + "fs": false + }, "scripts": { "compile": "tsc -b", "watch": "tsc -b -w",