You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
401 B

4 years ago
  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;