compression-webpack-plugin-npm-6.1.1-3a2a65987e.patch 927 B

12345678910111213141516171819202122
  1. diff --git a/dist/index.js b/dist/index.js
  2. index 57e375592d984e9a429bcd9f800fa2d15cd662e4..0c47d96df3608e23adfd77d887a8f72abbd501c0 100644
  3. --- a/dist/index.js
  4. +++ b/dist/index.js
  5. @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
  6. });
  7. exports.default = void 0;
  8. -var _crypto = _interopRequireDefault(require("crypto"));
  9. +var _createHash = _interopRequireDefault(require("webpack/lib/util/createHash"));
  10. var _path = _interopRequireDefault(require("path"));
  11. @@ -227,7 +227,7 @@ class CompressionPlugin {
  12. originalAlgorithm: this.options.algorithm,
  13. compressionOptions: this.options.compressionOptions,
  14. name,
  15. - contentHash: _crypto.default.createHash("md4").update(input).digest("hex")
  16. + contentHash: _createHash.default("md4").update(input).digest("hex")
  17. };
  18. } else {
  19. cacheData.name = (0, _serializeJavascript.default)({