Skip to content

Commit

Permalink
Merge pull request #51 from chriskirknielsen/patch-2
Browse files Browse the repository at this point in the history
Fix outdated asset key reference for custom asset filename
  • Loading branch information
zachleat authored Oct 23, 2024
2 parents 512ed22 + b1b7909 commit 42fdbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssetCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AssetCache {

// Compute the filename only once
if (typeof this.options.filenameFormat === "function") {
this.#customFilename = this.options.filenameFormat(this.uniqueKey, this.hash);
this.#customFilename = this.options.filenameFormat(uniqueKey, this.hash);

if (typeof this.#customFilename !== "string") {
throw new Error(`The provided cacheFilename callback function did not return a string.`);
Expand Down

0 comments on commit 42fdbf9

Please sign in to comment.