From dd8fbfe5b373ba95ec406c1642e81ef520cdeddb Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Mon, 25 Mar 2024 12:22:45 -0600 Subject: [PATCH] fix(esm): add polyfills for crypto --- bundle.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bundle.mjs b/bundle.mjs index 0f8859d6..a2d5f435 100644 --- a/bundle.mjs +++ b/bundle.mjs @@ -10,7 +10,13 @@ const bundle = () => { target: ['esnext'], format: 'esm', globalName: 'ar.io', - plugins: [polyfillNode()], + plugins: [ + polyfillNode({ + polyfills: { + crypto: true, + }, + }), + ], tsconfig: './tsconfig.web.json', outfile: './bundles/web.bundle.min.js', })