Revision 29c8feef759adde2b4d6a0fbe122390b485a40d2 authored by Joey Perrott on 18 November 2021, 22:47:29 UTC, committed by Jessica Janiuk on 24 November 2021, 18:55:33 UTC
In node@16 the URL constructor fails for for a malformed URL such as http://<empty>/. Instead http://_empty_ is
used as this conveys the same information in tests but is correctly formed.

PR Close #44211
1 parent 7b0e9b0
Raw File
tsconfig.json
{
  "compilerOptions": {
    // Setting the "baseUrl" to a different directory than "packages/" because otherwise
    // packages like the native "http" module are resolved to the Angular "http" package.
    "baseUrl": "..",
    "declaration": true,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "module": "es2020",
    "strict": true,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "strictNullChecks": true,
    "strictPropertyInitialization": true,
    "outDir": "../dist/all/@angular",
    "noImplicitAny": true,
    "noImplicitOverride": true,
    "useUnknownInCatchVariables": false,
    "noFallthroughCasesInSwitch": true,
    "paths": {
      "selenium-webdriver": [
        "./node_modules/@types/selenium-webdriver/index.d.ts"
      ],
      "rxjs/*": [
        "./node_modules/rxjs/*"
      ],
      "@angular/*": [
        "./packages/*"
      ],
      "zone.js/*": [
        "./packages/zone.js/*"
      ],
      "angular-in-memory-web-api": [
        "./packages/misc/angular-in-memory-web-api/index.ts"
      ]
    },
    "rootDir": ".",
    "inlineSourceMap": true,
    "lib": [
      "es2020",
      "dom"
    ],
    "skipDefaultLibCheck": true,
    "skipLibCheck": true,
    "target": "es2020",
    "types": [
      "angular"
    ]
  },
  "bazelOptions": {
    "suppressTsconfigOverrideWarnings": true
  },
  "exclude": [
    "bazel",
    "common/locales",
    "compiler-cli/integrationtest",
    "compiler-cli/test/compliance",
    "core/schematics",
    "elements/schematics",
    // Do not build the example package because there are no legacy tests that need to be
    // built. Additionally the examples are not made compatible with the "strict" option.
    "examples/**",
    // Http doesn't need to built since it is no longer maintained and
    // will be removed eventually. See: FW-1392.
    "http/**",
    "language-service/ivy/test/legacy/project",
    "platform-server/integrationtest",
    "router/test/aot_ngsummary_test"
  ]
}
back to top