RequireContextDependency.js 566 B

12345678910111213141516171819202122
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const ContextDependency = require("./ContextDependency");
  7. const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId");
  8. class RequireContextDependency extends ContextDependency {
  9. constructor(options, range) {
  10. super(options);
  11. this.range = range;
  12. }
  13. get type() {
  14. return "require.context";
  15. }
  16. }
  17. RequireContextDependency.Template = ModuleDependencyTemplateAsRequireId;
  18. module.exports = RequireContextDependency;