HarmonyAcceptImportDependency.js 1007 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const makeSerializable = require("../util/makeSerializable");
  7. const HarmonyImportDependency = require("./HarmonyImportDependency");
  8. const NullDependency = require("./NullDependency");
  9. /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
  10. /** @typedef {import("../Dependency")} Dependency */
  11. /** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
  12. class HarmonyAcceptImportDependency extends HarmonyImportDependency {
  13. constructor(request) {
  14. super(request, NaN);
  15. this.weak = true;
  16. }
  17. get type() {
  18. return "harmony accept";
  19. }
  20. }
  21. makeSerializable(
  22. HarmonyAcceptImportDependency,
  23. "webpack/lib/dependencies/HarmonyAcceptImportDependency"
  24. );
  25. HarmonyAcceptImportDependency.Template =
  26. /** @type {typeof HarmonyImportDependency.Template} */ (
  27. NullDependency.Template
  28. );
  29. module.exports = HarmonyAcceptImportDependency;