您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LocalModule.js 401B

1234567891011121314151617181920212223
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. class LocalModule {
  7. constructor(module, name, idx) {
  8. this.module = module;
  9. this.name = name;
  10. this.idx = idx;
  11. this.used = false;
  12. }
  13. flagUsed() {
  14. this.used = true;
  15. }
  16. variableName() {
  17. return "__WEBPACK_LOCAL_MODULE_" + this.idx + "__";
  18. }
  19. }
  20. module.exports = LocalModule;