hunk.code_window:  */
   import { getSystemPath } from '@angular-devkit/core';
   import { CompilerOptions } from '@angular/compiler-cli';
   import { AngularWebpackLoaderPath, AngularWebpackPlugin } from '@ngtools/webpack';
   import { ScriptTarget } from 'typescript';
   import { Configuration } from 'webpack';
   import { WebpackConfigOptions } from '../../utils/build-options';
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit: import type { CompilerOptions } from '@angular/compiler-cli';
  
hunk.file_path: packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts
hunk.type: replace
file: /**
   * @license
   * Copyright Google LLC All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   */
  
  export function urlJoin(...parts: string[]): string {
    const [p, ...rest] = parts;
  
    // Remove trailing slash from first part
    // Join all parts with `/`
    // Dedupe double slashes from path names
    return p.replace(/\/$/, '') + ('/' + rest.join('/')).replace(/\/\/+/g, '/');
  }
  