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 @@ -65,6 +65,7 @@ import {
65
65
normalizeOptimization ,
66
66
normalizeSourceMaps ,
67
67
} from '../utils' ;
68
+ import { manglingDisabled } from '../utils/mangle-options' ;
68
69
import { CacheKey , ProcessBundleOptions } from '../utils/process-bundle' ;
69
70
import { assertCompatibleAngularVersion } from '../utils/version' ;
70
71
import {
@@ -385,7 +386,10 @@ export function buildWebpackBrowser(
385
386
const codeHash = createHash ( 'sha1' )
386
387
. update ( action . code )
387
388
. digest ( 'hex' ) ;
388
- const baseCacheKey = `${ packageVersion } |${ action . code . length } |${ codeHash } ` ;
389
+ let baseCacheKey = `${ packageVersion } |${ action . code . length } |${ codeHash } ` ;
390
+ if ( manglingDisabled ) {
391
+ baseCacheKey += '|MD' ;
392
+ }
389
393
390
394
// Postfix added to sourcemap cache keys when vendor sourcemaps are present
391
395
// Allows non-destructive caching of both variants
You can’t perform that action at this time.
0 commit comments