We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bd2e6b commit 39aa627Copy full SHA for 39aa627
1 file changed
packages/angular_devkit/build_angular/src/browser/action-cache.ts
@@ -76,7 +76,8 @@ export class BundleActionCache {
76
77
// sourceMappingURL is added at the very end which causes the code to be the same when sourcemaps are enabled/disabled
78
// When using hiddenSourceMaps we can omit the postfix since sourceMappingURL will not be added.
79
- 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.
80
+ const sourceMapPostFix = action.sourceMaps && !action.hiddenSourceMaps ? `|sourcemap|${action.filename}` : '';
81
82
const baseCacheKey = this.generateBaseCacheKey(action.code);
83
0 commit comments