WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/async-modules/AwaitDependenciesInitFragment.js
@@ -12,12 +12,16 @@
/** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../Generator").GenerateContext} GenerateContext */
/** @typedef {Map<string, string>} Dependencies */
/**
 * Represents AwaitDependenciesInitFragment.
 * @extends {InitFragment<GenerateContext>}
 */
class AwaitDependenciesInitFragment extends InitFragment {
   /**
    * @param {Map<string, string>} dependencies maps an import var to an async module that needs to be awaited
    * Creates an instance of AwaitDependenciesInitFragment.
    * @param {Dependencies} dependencies maps an import var to an async module that needs to be awaited
    */
   constructor(dependencies) {
      super(
@@ -26,10 +30,12 @@
         0,
         "await-dependencies"
      );
      /** @type {Dependencies} */
      this.dependencies = dependencies;
   }
   /**
    * Merges another await-dependencies fragment into this fragment.
    * @param {AwaitDependenciesInitFragment} other other AwaitDependenciesInitFragment
    * @returns {AwaitDependenciesInitFragment} AwaitDependenciesInitFragment
    */
@@ -42,6 +48,7 @@
   }
   /**
    * Returns the source code that will be included as initialization code.
    * @param {GenerateContext} context context
    * @returns {string | Source | undefined} the source code that will be included as initialization code
    */