Skip to content

Commit cbe41c6

Browse files
committed
Adjust compilerOptions to match ng-cli defaults and make the code tree-shakable
1 parent 98258ab commit cbe41c6

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

tsconfig.ngc.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "commonjs",
5-
"target": "es5",
4+
"module": "es2015",
5+
"target": "es2015",
66
"outDir": "./dist",
77
"rootDir": "./tmp",
88
"noImplicitAny": true,
99
"allowUnusedLabels": false,
1010
"noImplicitReturns": true,
1111
"declaration": true,
12-
"removeComments": true
12+
"removeComments": true,
13+
"sourceMap": true,
14+
"inlineSources": true,
15+
"importHelpers": true,
16+
"types": [],
17+
"lib": [
18+
"dom",
19+
"es2015"
20+
]
1321
},
1422
"include": [
1523
"./tmp"
1624
],
1725
"angularCompilerOptions": {
1826
"strictMetadataEmit": true,
19-
"skipTemplateCodegen": true
27+
"skipTemplateCodegen": true,
28+
"annotateForClosureCompiler": true,
29+
"fullTemplateTypeCheck": true,
30+
"strictInjectionParameters": true
2031
}
2132
}

0 commit comments

Comments
 (0)