a zip code crypto-currency system good for red ONLY

UnsupportedDependency.js 641B

123456789101112131415161718192021222324
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const NullDependency = require("./NullDependency");
  7. const webpackMissingModule = require("./WebpackMissingModule").module;
  8. class UnsupportedDependency extends NullDependency {
  9. constructor(request, range) {
  10. super();
  11. this.request = request;
  12. this.range = range;
  13. }
  14. }
  15. UnsupportedDependency.Template = class UnsupportedDependencyTemplate {
  16. apply(dep, source, outputOptions, requestShortener) {
  17. source.replace(dep.range[0], dep.range[1], webpackMissingModule(dep.request));
  18. }
  19. };
  20. module.exports = UnsupportedDependency;