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

ModuleDependencyTemplateAsRequireId.js 429B

1234567891011121314151617
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. class ModuleDependencyTemplateAsRequireId {
  7. apply(dep, source, runtime) {
  8. if (!dep.range) return;
  9. const content = runtime.moduleExports({
  10. module: dep.module,
  11. request: dep.request
  12. });
  13. source.replace(dep.range[0], dep.range[1] - 1, content);
  14. }
  15. }
  16. module.exports = ModuleDependencyTemplateAsRequireId;