File tree 1 file changed +5
-1
lines changed
packages/angular_devkit/build_angular/src/browser
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ import {
63
63
normalizeOptimization ,
64
64
normalizeSourceMaps ,
65
65
} from '../utils' ;
66
+ import { manglingDisabled } from '../utils/mangle-options' ;
66
67
import { CacheKey , ProcessBundleOptions } from '../utils/process-bundle' ;
67
68
import { assertCompatibleAngularVersion } from '../utils/version' ;
68
69
import {
@@ -374,7 +375,10 @@ export function buildWebpackBrowser(
374
375
const codeHash = createHash ( 'sha1' )
375
376
. update ( action . code )
376
377
. digest ( 'hex' ) ;
377
- const baseCacheKey = `${ packageVersion } |${ action . code . length } |${ codeHash } ` ;
378
+ let baseCacheKey = `${ packageVersion } |${ action . code . length } |${ codeHash } ` ;
379
+ if ( manglingDisabled ) {
380
+ baseCacheKey += '|MD' ;
381
+ }
378
382
379
383
// Postfix added to sourcemap cache keys when vendor sourcemaps are present
380
384
// Allows non-destructive caching of both variants
You can’t perform that action at this time.
0 commit comments