Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): properly process es2016+ targets …
Browse files Browse the repository at this point in the history
…with differential loading cache
  • Loading branch information
clydin authored and vikerman committed Dec 17, 2019
1 parent 10db878 commit b7eabe1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -168,7 +168,7 @@ export class BundleActionCache {
cacheEntry = entries[CacheKey.DownlevelCode];
if (cacheEntry) {
result.downlevel = {
filename: action.filename.replace('es2015', 'es5'),
filename: action.filename.replace(/\-es20\d{2}/, '-es5'),
size: cacheEntry.size,
integrity: cacheEntry.integrity,
};
Expand All @@ -178,7 +178,7 @@ export class BundleActionCache {
cacheEntry = entries[CacheKey.DownlevelMap];
if (cacheEntry) {
result.downlevel.map = {
filename: action.filename.replace('es2015', 'es5') + '.map',
filename: action.filename.replace(/\-es20\d{2}/, '-es5') + '.map',
size: cacheEntry.size,
};

Expand Down

0 comments on commit b7eabe1

Please sign in to comment.