Skip to content

Commit 3acd694

Browse files
committed
fix(@angular-devkit/build-angular): remove workaround for Webpack 5 sourcemaps
The `webpack-sources` library no longer throws an error when used to process sourcemaps during differential loading.
1 parent e84e517 commit 3acd694

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
} from 'webpack-sources';
3333
import { allowMangle, allowMinify, shouldBeautify } from './environment-options';
3434
import { I18nOptions } from './i18n-options';
35-
import { isWebpackFiveOrHigher } from './webpack-version';
3635

3736
type LocalizeUtilities = typeof import('@angular/localize/src/tools/src/source_file_utils');
3837

@@ -220,8 +219,7 @@ async function mergeSourceMaps(
220219
fast = false,
221220
): Promise<RawSourceMap> {
222221
// Webpack 5 terser sourcemaps currently fail merging with the high-quality method
223-
// TODO_WEBPACK_5: Investigate high-quality sourcemap merge failures
224-
if (fast || isWebpackFiveOrHigher()) {
222+
if (fast) {
225223
return mergeSourceMapsFast(inputSourceMap, resultSourceMap);
226224
}
227225

0 commit comments

Comments
 (0)