Skip to content

Commit

Permalink
fix(esm): add polyfills for crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 25, 2024
1 parent 4bbe339 commit dd8fbfe
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 dd8fbfe

Please sign in to comment.