UNPKG
jest-vue
Version:
latest (0.8.2)
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.0
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
Jest Vue transform
jest-vue
/
lib
/
get_cache_key.js
8 lines
(6 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
crypto =
require
(
'crypto'
)
module
.
exports
=
function
getCacheKey
(
fileData, filename, configString
) {
return
crypto.
createHash
(
'md5'
) .
update
(fileData + filename + configString,
'utf8'
) .
digest
(
'hex'
) }