workaround for webpack crypto (#6197)

Steven Silvester 5 years ago committed by GitHub
parent 76d051eb5e
commit 07afafca73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,11 @@
const path = require('path');
const crypto = require('crypto');
// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
// See https://github.com/jupyterlab/jupyterlab/issues/11248
const cryptoOrigCreateHash = crypto.createHash;
crypto.createHash = (algorithm) =>
cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);
module.exports = {
entry: ['babel-polyfill', '@jupyterlab/apputils/lib/sanitizer'],

Loading…
Cancel
Save