CssDependency.js 769 B

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _webpack = _interopRequireDefault(require("webpack"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. class CssDependency extends _webpack.default.Dependency {
  9. constructor({
  10. identifier,
  11. content,
  12. media,
  13. sourceMap
  14. }, context, identifierIndex) {
  15. super();
  16. this.identifier = identifier;
  17. this.identifierIndex = identifierIndex;
  18. this.content = content;
  19. this.media = media;
  20. this.sourceMap = sourceMap;
  21. this.context = context;
  22. }
  23. getResourceIdentifier() {
  24. return `css-module-${this.identifier}-${this.identifierIndex}`;
  25. }
  26. }
  27. exports.default = CssDependency;