Skip to content

Commit

Permalink
Add sourcemaps to development build
Browse files Browse the repository at this point in the history
  • Loading branch information
joluj committed May 31, 2024
1 parent 5ee7c1e commit 8bf5053
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions apps/interpreter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
},
"run": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"commands": ["node --enable-source-maps dist/apps/interpreter/main.js"],
"commands": [
{
"command": "nx run interpreter:build:development",
"forwardAllArgs": false
},
"node --enable-source-maps dist/apps/interpreter/main.js"
],
"parallel": false
}
},
Expand Down
6 changes: 5 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"generatePackageJson": true
},
"configurations": {
"development": {},
"development": {
"esbuildOptions": {
"sourcemap": true
}
},
"production": {}
}
},
Expand Down

0 comments on commit 8bf5053

Please sign in to comment.