Skip to content

Commit

Permalink
Use source maps for better error stacks
Browse files Browse the repository at this point in the history
This has been very annoying.
  • Loading branch information
mia-pi-git committed Nov 27, 2023
1 parent 73f644e commit c89c68a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 24 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"preact": "^10.5.15",
"preact-render-to-string": "^5.1.19",
"probe-image-size": "^7.2.3",
"sockjs": "^0.3.21"
"sockjs": "^0.3.21",
"source-map-support": "^0.5.21"
},
"optionalDependencies": {
"better-sqlite3": "^7.6.2",
Expand Down
1 change: 1 addition & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ if (isNaN(nodeVersion) || nodeVersion < 16) {
}

import {FS, Repl} from '../lib';
import 'source-map-support/register';

/*********************************************************
* Set up most of our globals
Expand Down

0 comments on commit c89c68a

Please sign in to comment.