Skip to content

Commit

Permalink
Update polyfill for crypto in webpack5
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 16, 2023
1 parent e2f63c3 commit b669c5f
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 5 deletions.
1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@vueuse/core": "^9.12.0",
"bootstrap": "^4.5.3",
"core-js": "^3.6.5",
"crypto-browserify": "^3.12.0",
"cytoscape": "^3.23.0",
"cytoscape-cola": "^2.5.1",
"cytoscape-dagre": "^2.4.0",
Expand Down
1 change: 1 addition & 0 deletions webapp/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
transpileDependencies: ["mermaid"],
configureWebpack: (config) => {
config.resolve.fallback = { crypto: require.resolve("crypto-browserify") };
config.externals = {
...config.externals,
bokeh: "Bokeh",
Expand Down
Loading

0 comments on commit b669c5f

Please sign in to comment.