Currently I use translucent in browser environment via a messy polyfill. See below:
resolve: {
alias: {
'node-fetch': 'node-fetch-polyfill',
'sha256': 'tiny-sha256',
'@sinclair/typebox': '@sinclair/typebox',
'@dcspark/cardano-multiplatform-lib-nodejs': '@dcspark/cardano-multiplatform-lib-browser',
'uplc-node': 'translucent/uplc/pkg-web',
'@emurgo/cardano-message-signing-nodejs': '@emurgo/cardano-message-signing-browser',
}
},
optimizeDeps: {
exclude: ['translucent', 'typebox'],
...
},
We should improve this to make browser integration simpler but I'm not enough of a package managing whiz to know how exactly.
Currently I use translucent in browser environment via a messy polyfill. See below:
We should improve this to make browser integration simpler but I'm not enough of a package managing whiz to know how exactly.