File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/angular_devkit/build_angular/src/browser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ import {
6565 normalizeOptimization ,
6666 normalizeSourceMaps ,
6767} from '../utils' ;
68+ import { manglingDisabled } from '../utils/mangle-options' ;
6869import { CacheKey , ProcessBundleOptions } from '../utils/process-bundle' ;
6970import { assertCompatibleAngularVersion } from '../utils/version' ;
7071import {
@@ -385,7 +386,10 @@ export function buildWebpackBrowser(
385386 const codeHash = createHash ( 'sha1' )
386387 . update ( action . code )
387388 . 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+ }
389393
390394 // Postfix added to sourcemap cache keys when vendor sourcemaps are present
391395 // Allows non-destructive caching of both variants
You can’t perform that action at this time.
0 commit comments