Skip to content

Commit

Permalink
fix: faster startup time of the CLI and REPL by loading the bundled file
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Mar 5, 2024
1 parent 8d166ea commit 1bcc9f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

- Fix #3163: `toTex` wrongly returning `Infinity` for large BigNumbers.
- Fix #3162: add license information about CSParse (#3164).
- Fix: faster startup time of the CLI and REPL by loading the bundle.


# 2024-02-22, 12.4.0
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const PRECISION = 14 // decimals
* @return {*}
*/
function getMath () {
return require('../lib/cjs/defaultInstance.js').default
return require('../lib/browser/math.js')
}

/**
Expand Down
2 changes: 1 addition & 1 deletion bin/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This simply preloads mathjs and drops you into a REPL to
* help interactive debugging.
**/
global.math = require('../lib/cjs/defaultInstance.js').default
global.math = require('../lib/browser/math.js')
const repl = require('repl')

repl.start({ useGlobal: true })

0 comments on commit 1bcc9f6

Please sign in to comment.