Skip to content

Commit

Permalink
Improve typescript sourcemaps
Browse files Browse the repository at this point in the history
Inline sources allows browserify to sourcemap
back to original typescript. If you add the ui
folder to chrome, you can then edit ts files
and set ts breakpoints directly in the browser!
  • Loading branch information
isaacl committed Jul 31, 2019
1 parent 874352b commit 25de98f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
3 changes: 1 addition & 2 deletions ui/ceval/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts", "test/*.ts"],
"compilerOptions": {
"outDir": "./dist",
"rootDir": ".",
"declaration": true
}
}
3 changes: 1 addition & 2 deletions ui/chat/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
"outDir": "./dist",
"declaration": true,
"noEmitOnError": false
}
}
3 changes: 1 addition & 2 deletions ui/chess/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
"outDir": "./dist",
"declaration": true
}
}
3 changes: 1 addition & 2 deletions ui/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
"outDir": "./",
"declaration": true
}
}
3 changes: 1 addition & 2 deletions ui/game/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "./",
"declaration": true
}
}
3 changes: 1 addition & 2 deletions ui/nvui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
"outDir": "./",
"declaration": true
}
}
3 changes: 1 addition & 2 deletions ui/tree/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig_module.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
"outDir": "./dist",
"declaration": true
}
}
8 changes: 8 additions & 0 deletions ui/tsconfig_module.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"inlineSourceMap": true,
"inlineSources": true
}
}

0 comments on commit 25de98f

Please sign in to comment.