Skip to content

Commit

Permalink
fix(esm): add polyfills for crypto (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 25, 2024
2 parents 4bbe339 + dd8fbfe commit 553822c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
Expand Down

0 comments on commit 553822c

Please sign in to comment.