ImportDependenciesBlock.js 548 B

1234567891011121314151617
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const AsyncDependenciesBlock = require("../AsyncDependenciesBlock");
  7. const ImportDependency = require("./ImportDependency");
  8. module.exports = class ImportDependenciesBlock extends AsyncDependenciesBlock {
  9. constructor(request, range, chunkName, module, loc) {
  10. super(chunkName, module, loc);
  11. this.range = range;
  12. const dep = new ImportDependency(request, this);
  13. dep.loc = loc;
  14. this.addDependency(dep);
  15. }
  16. };