/* To learn more about this file see: https://angular.io/config/tsconfig. */
// This tsconfig is used when building @sentry/angular with the Angular
// compiler and `ng-packagr`. It configures a production build conforming
// to the Angular Package Format (APF).
{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "target": "es2015",
    "lib": ["dom", "es2015"],
    "baseUrl": "./"
  },
  "angularCompilerOptions": {
    "skipTemplateCodegen": true,
    "strictMetadataEmit": true,
    "enableResourceInlining": true,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true,
    // As per Angular 10, the recommendation from the library creation guide
    // is to disable compilation for the Ivy rendering engine in production builds
    // to ensure compatibility with Angular 10.
    // For Angular 11-13 applications, ngcc and the Angular linker convert the compiled JS
    // at application compile time into an Ivy-compatible version which is then further used in
    // the build process. This ensures compatibility with newer Angular versions than the one
    // that was used to initially compile the library (Angular 10 in our case).
    "enableIvy": false
  }
}
