Skip to content

Commit

Permalink
fix #3001: mathjs bundle containing new Function(...) (CSP issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jul 20, 2023
1 parent 5477d38 commit d0d11a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# History

# unpublished changes since 11.9.0

- Fix #3001: mathjs bundle containing `new Function(...)` (CSP issue).


# 2023-07-19, 11.9.0

- Implement function `solveODE` (#2958). Thanks @dvd101x.
Expand Down
1 change: 1 addition & 0 deletions gulpfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const webpackConfig = {
globalObject: 'this',
filename: FILE
},
node: false, // to make sure Webpack doesn't generate 'new Function("return this")' in the bundle output, see https://github.com/josdejong/mathjs/issues/3001
plugins: [
bannerPlugin
// new webpack.optimize.ModuleConcatenationPlugin()
Expand Down

0 comments on commit d0d11a2

Please sign in to comment.