Fix preval cache issues

This commit is contained in:
Alex Gleason
2021-03-30 15:40:58 -05:00
parent 5b93da45ca
commit 8b7c8f6eac
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
const { resolve } = require('path');
// Forces recompile whenever the current commit changes
// Useful for generating the version hash in the UI
module.exports = function(source, map) {
this.addDependency(resolve(__dirname, '../../.git/logs/HEAD'));
this.callback(null, source, map);
};