We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4662c0a commit 2a08085Copy full SHA for 2a08085
1 file changed
lib/utils.js
@@ -1,6 +1,5 @@
1
'use strict';
2
3
-const fs = require('fs');
4
const path = require('path');
5
const hashForDep = require('hash-for-dep');
6
const debugGenerator = require('heimdalljs-logger');
@@ -207,8 +206,7 @@ function setup(pluginInfo, options) {
207
206
208
function makeCacheKey(templateCompilerPath, pluginInfo, extra) {
209
let templateCompilerFullPath = require.resolve(templateCompilerPath);
210
- let templateCompilerCacheKey = fs.readFileSync(templateCompilerFullPath, { encoding: 'utf-8' });
211
- let cacheItems = [templateCompilerCacheKey, extra].concat(pluginInfo.cacheKeys.sort());
+ let cacheItems = [templateCompilerFullPath, extra].concat(pluginInfo.cacheKeys.sort());
212
// extra may be undefined
213
return cacheItems.filter(Boolean).join('|');
214
}
0 commit comments