Debian Codegraph @

bqplot/js/webpack.lab.config.js

raw
1 const crypto = require('crypto');
2
3 // Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
4 const cryptoOrigCreateHash = crypto.createHash;
5 crypto.createHash = (algorithm) =>
6 cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);