Use source maps
Enable source map output and use it to get better line reporting.
This commit is contained in:
parent
fed46dbb4a
commit
7aa937a7e9
2 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
"main": "build/node/index.js",
|
"main": "build/node/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "tsc",
|
"prepare": "tsc",
|
||||||
"build": "node build/node/cli.js",
|
"build": "node --enable-source-maps build/node/cli.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "antihtml",
|
"jsxImportSource": "antihtml",
|
||||||
|
"sourceMap": true,
|
||||||
"lib": ["es2023"],
|
"lib": ["es2023"],
|
||||||
"target": "es2023",
|
"target": "es2023",
|
||||||
"module": "node16",
|
"module": "node16",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue