babel-loader 7.1.4 → 7.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/fs-cache.js +3 -3
- package/package.json +1 -1
package/lib/fs-cache.js
CHANGED
@@ -73,16 +73,16 @@ var write = function write(filename, result, callback) {
|
|
73
73
|
* @return {String}
|
74
74
|
*/
|
75
75
|
var filename = function filename(source, identifier, options) {
|
76
|
-
var hash = crypto.createHash("
|
76
|
+
var hash = crypto.createHash("md4");
|
77
77
|
var contents = JSON.stringify({
|
78
78
|
source: source,
|
79
79
|
options: options,
|
80
80
|
identifier: identifier
|
81
81
|
});
|
82
82
|
|
83
|
-
hash.
|
83
|
+
hash.update(contents);
|
84
84
|
|
85
|
-
return hash.
|
85
|
+
return hash.digest("hex") + ".json.gz";
|
86
86
|
};
|
87
87
|
|
88
88
|
/**
|