Skip to content

Commit

Permalink
Install and use vm-browserify for sandboxedEval (#19059)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanyou0311 authored Mar 8, 2022
1 parent e89f0ab commit 2cc5678
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
29 changes: 23 additions & 6 deletions superset-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@
"transform-loader": "^0.2.4",
"ts-loader": "^9.2.5",
"typescript": "^4.5.4",
"vm-browserify": "^1.1.2",
"webpack": "^5.52.1",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.8.0",
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const config = {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'],
fallback: {
fs: false,
vm: false,
vm: require.resolve('vm-browserify'),
path: false,
},
},
Expand Down

0 comments on commit 2cc5678

Please sign in to comment.