Skip to content

Commit

Permalink
chore(rollup): cleanup incorrect method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Apr 9, 2020
1 parent 5c2f6c1 commit dde8842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rollup/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ try {
// Store the cache forever to re-use on each build
let cacheMap = Object.create(null);

// Generate a unique cache ID based on the input/outputOptions
function computeCacheKey(inputOptions, outputOptions) {
// Generate a unique cache ID based on the given json data
function computeCacheKey(cacheKeyData) {
const hash = crypto.createHash('sha256');
const hashContent = JSON.stringify(inputOptions) + JSON.stringify(outputOptions);
const hashContent = JSON.stringify(cacheKeyData);
return hash.update(hashContent).digest('hex');
}

Expand Down

0 comments on commit dde8842

Please sign in to comment.