Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): account for hashed and non hashed…
Browse files Browse the repository at this point in the history
… filesnames when having sourcemaps
  • Loading branch information
alan-agius4 authored and vikerman committed Jan 2, 2020
1 parent 5bd2e6b commit 39aa627
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export class BundleActionCache {

// sourceMappingURL is added at the very end which causes the code to be the same when sourcemaps are enabled/disabled
// When using hiddenSourceMaps we can omit the postfix since sourceMappingURL will not be added.
const sourceMapPostFix = action.sourceMaps && !action.hiddenSourceMaps ? '|sourcemap' : '';
// When having sourcemaps a hashed file and non hashed file can have the same content. But the sourceMappingURL will differ.
const sourceMapPostFix = action.sourceMaps && !action.hiddenSourceMaps ? `|sourcemap|${action.filename}` : '';

const baseCacheKey = this.generateBaseCacheKey(action.code);

Expand Down

0 comments on commit 39aa627

Please sign in to comment.