Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lvivski committed Jan 12, 2023
1 parent bb32769 commit 08a6e98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions webpack-subresource-integrity/src/plugin.ts
Expand Up @@ -28,7 +28,7 @@ import {
getTagSrc,
notNil,
sriHashVariableReference,
updateAssetHash,
updateAsset,
tryGetSource,
replaceInSource,
usesAnyHash,
Expand Down Expand Up @@ -128,12 +128,12 @@ export class Plugin {
): sources.Source => {
const asset = assets[chunkFile];
assert(asset, `Missing asset for file ${chunkFile}`);
return (assets[chunkFile] = replaceInSource(
return replaceInSource(
compiler,
asset,
chunkFile,
hashByPlaceholder
));
);
};

private warnAboutLongTermCaching = (assetInfo: AssetInfo) => {
Expand Down Expand Up @@ -186,7 +186,7 @@ export class Plugin {
);
}

updateAssetHash(
updateAsset(
this.compilation,
sourcePath,
newAsset,
Expand Down
2 changes: 1 addition & 1 deletion webpack-subresource-integrity/src/util.ts
Expand Up @@ -214,7 +214,7 @@ export function* allChunksInPrimaryChunkIterable(
}
}

export function updateAssetHash(
export function updateAsset(
compilation: Compilation,
assetPath: string,
source: sources.Source,
Expand Down

0 comments on commit 08a6e98

Please sign in to comment.