Skip to content

Commit

Permalink
feat(@schematics/angular): emit declaration maps for local library bu…
Browse files Browse the repository at this point in the history
…ilds

With this change we enable emitting declaration maps when building libraries to be consumed locally as this improved DX as this will allow editors to go to the original typescript file when using `Go to Definition`.

For production builds, declaration maps are disabled because they are not useful since the source files are not included in the distributable package.

Closes #17888
  • Loading branch information
alan-agius4 committed Jun 12, 2020
1 parent c1e1c8b commit 17dbaeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -4,6 +4,7 @@
"outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/lib",
"target": "es2015",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": [
Expand Down
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
}
Expand Down

0 comments on commit 17dbaeb

Please sign in to comment.