Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jan 20, 2022
1 parent 32e1cee commit 1ef290a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"jupyterlab": {
"extension": "lib/plugin",
"outputDir": "ipympl/labextension/",
"webpackConfig": "webpack.lab.config.js",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": false,
Expand Down
6 changes: 6 additions & 0 deletions webpack.lab.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const crypto = require('crypto');

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

0 comments on commit 1ef290a

Please sign in to comment.