Skip to content

Commit 64165f8

Browse files
committed
fix: inline options into angular config to avoid module resolution compatability
1 parent 6c8bc6e commit 64165f8

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

packages/angular/tsconfig.ngc.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,34 @@
22
// This tsconfig is used when building @sentry/angular with the Angular
33
// compiler and `ng-packagr`. It configures a production build conforming
44
// to the Angular Package Format (APF).
5+
//
6+
// Does NOT extend the shared base tsconfig because ng-packagr ships its own
7+
// older TypeScript that doesn't support "moduleResolution": "bundler".
58
{
6-
"extends": "./tsconfig.json",
9+
"include": ["**/*.ts", "src/**/*"],
10+
"exclude": ["patch-vitest.ts", "setup-test.ts"],
711
"compilerOptions": {
8-
"target": "es2020",
12+
"declaration": false,
913
"declarationMap": false,
14+
"experimentalDecorators": true,
15+
"importHelpers": true,
16+
"inlineSources": true,
17+
"isolatedModules": true,
1018
"lib": ["DOM", "es2020"],
19+
"moduleResolution": "node",
20+
"noErrorTruncation": true,
21+
"noFallthroughCasesInSwitch": true,
22+
"noImplicitReturns": true,
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noUncheckedIndexedAccess": true,
26+
"preserveWatchOutput": true,
27+
"skipLibCheck": true,
28+
"sourceMap": true,
29+
"strict": true,
30+
"strictBindCallApply": false,
31+
"target": "es2020",
32+
"types": ["node"],
1133
"baseUrl": "./"
1234
},
1335
"angularCompilerOptions": {

0 commit comments

Comments
 (0)