| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,6 @@ export interface ApplicationPresetOptions { | |||
| 20 | 20 | angularLinker?: { | |
| 21 | 21 | shouldLink: boolean; | |
| 22 | 22 | jitMode: boolean; | |
| 23 | - sourcemap: boolean; | ||
| 24 | 23 | }; | |
| 25 | 24 | ||
| 26 | 25 | forceES5?: boolean; | |
@@ -32,8 +31,7 @@ export interface ApplicationPresetOptions { | |||
| 32 | 31 | type I18nDiagnostics = import('@angular/localize/src/tools/src/diagnostics').Diagnostics; | |
| 33 | 32 | function createI18nDiagnostics(reporter: DiagnosticReporter | undefined): I18nDiagnostics { | |
| 34 | 33 | // Babel currently is synchronous so import cannot be used | |
| 35 | - const diagnostics: I18nDiagnostics = | ||
| 36 | - new (require('@angular/localize/src/tools/src/diagnostics').Diagnostics)(); | ||
| 34 | + const diagnostics: I18nDiagnostics = new (require('@angular/localize/src/tools/src/diagnostics').Diagnostics)(); | ||
| 37 | 35 | ||
| 38 | 36 | if (!reporter) { | |
| 39 | 37 | return diagnostics; | |
@@ -132,13 +130,13 @@ export default function (api: unknown, options: ApplicationPresetOptions) { | |||
| 132 | 130 | ||
| 133 | 131 | if (options.angularLinker?.shouldLink) { | |
| 134 | 132 | // Babel currently is synchronous so import cannot be used | |
| 135 | - const { createEs2015LinkerPlugin } = | ||
| 136 | - require('@angular/compiler-cli/linker/babel') as typeof import('@angular/compiler-cli/linker/babel'); | ||
| 133 | + const { | ||
| 134 | + createEs2015LinkerPlugin, | ||
| 135 | + } = require('@angular/compiler-cli/linker/babel') as typeof import('@angular/compiler-cli/linker/babel'); | ||
| 137 | 136 | ||
| 138 | 137 | plugins.push( | |
| 139 | 138 | createEs2015LinkerPlugin({ | |
| 140 | 139 | linkerJitMode: options.angularLinker.jitMode, | |
| 141 | - sourceMapping: options.angularLinker.sourcemap, | ||
| 142 | 140 | logger: createNgtscLogger(options.diagnosticReporter), | |
| 143 | 141 | fileSystem: { | |
| 144 | 142 | resolve: path.resolve, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,6 @@ export default custom<AngularCustomOptions>(() => { | |||
| 58 | 58 | customOptions.angularLinker = { | |
| 59 | 59 | shouldLink: true, | |
| 60 | 60 | jitMode: aot !== true, | |
| 61 | - sourcemap: false, | ||
| 62 | 61 | }; | |
| 63 | 62 | shouldProcess = true; | |
| 64 | 63 | } | |
@@ -141,15 +140,6 @@ export default custom<AngularCustomOptions>(() => { | |||
| 141 | 140 | ); | |
| 142 | 141 | } | |
| 143 | 142 | ||
| 144 | - // Only enable linker template sourcemapping if linker is enabled and Webpack provides | ||
| 145 | - // a sourcemap. This logic allows the linker sourcemap behavior to be controlled by the | ||
| 146 | - // Webpack sourcemap configuration. For example, if a vendor file is being processed | ||
| 147 | - // and vendor sourcemaps are disabled, the `inputSourceMap` property will be `undefined` | ||
| 148 | - // which will effectively disable linker sourcemapping for vendor files. | ||
| 149 | - if (customOptions.angularLinker && configuration.options.inputSourceMap) { | ||
| 150 | - customOptions.angularLinker.sourcemap = true; | ||
| 151 | - } | ||
| 152 | - | ||
| 153 | 143 | return { | |
| 154 | 144 | ...configuration.options, | |
| 155 | 145 | // Workaround for https://github.com/babel/babel-loader/pull/896 is available | |
| Back | FazBrowse Home | New Git URL |
0 commit comments