diff --git a/packages/angular_devkit/build_angular/src/babel/presets/application.ts b/packages/angular_devkit/build_angular/src/babel/presets/application.ts index c34c5431e4f0..5a092f6d89a9 100644 --- a/packages/angular_devkit/build_angular/src/babel/presets/application.ts +++ b/packages/angular_devkit/build_angular/src/babel/presets/application.ts @@ -20,7 +20,6 @@ export interface ApplicationPresetOptions { angularLinker?: { shouldLink: boolean; jitMode: boolean; - sourcemap: boolean; }; forceES5?: boolean; @@ -138,7 +137,6 @@ export default function (api: unknown, options: ApplicationPresetOptions) { plugins.push( createEs2015LinkerPlugin({ linkerJitMode: options.angularLinker.jitMode, - sourceMapping: options.angularLinker.sourcemap, logger: createNgtscLogger(options.diagnosticReporter), fileSystem: { resolve: path.resolve, diff --git a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts index dbbc248b1045..ba6b2583e1c3 100644 --- a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts +++ b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts @@ -58,7 +58,6 @@ export default custom(() => { customOptions.angularLinker = { shouldLink: true, jitMode: aot !== true, - sourcemap: false, }; shouldProcess = true; } @@ -141,15 +140,6 @@ export default custom(() => { ); } - // Only enable linker template sourcemapping if linker is enabled and Webpack provides - // a sourcemap. This logic allows the linker sourcemap behavior to be controlled by the - // Webpack sourcemap configuration. For example, if a vendor file is being processed - // and vendor sourcemaps are disabled, the `inputSourceMap` property will be `undefined` - // which will effectively disable linker sourcemapping for vendor files. - if (customOptions.angularLinker && configuration.options.inputSourceMap) { - customOptions.angularLinker.sourcemap = true; - } - return { ...configuration.options, // Workaround for https://github.com/babel/babel-loader/pull/896 is available