WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/ConditionalInitFragment.js
@@ -15,6 +15,7 @@
/** @typedef {import("./util/runtime").RuntimeSpec} RuntimeSpec */
/**
 * Returns wrapped source.
 * @param {string} condition condition
 * @param {string | Source} source source
 * @returns {string | Source} wrapped source
@@ -36,10 +37,12 @@
};
/**
 * Represents ConditionalInitFragment.
 * @extends {InitFragment<GenerateContext>}
 */
class ConditionalInitFragment extends InitFragment {
   /**
    * Creates an instance of ConditionalInitFragment.
    * @param {string | Source | undefined} content the source code that will be included as initialization code
    * @param {number} stage category of initialization code (contribute to order)
    * @param {number} position position in the category (contribute to order)
@@ -60,6 +63,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
    */
@@ -77,6 +81,7 @@
   }
   /**
    * Returns the source code that will be included at the end of the module.
    * @param {GenerateContext} context context
    * @returns {string | Source | undefined} the source code that will be included at the end of the module
    */
@@ -94,6 +99,7 @@
   }
   /**
    * Returns merged fragment.
    * @param {ConditionalInitFragment} other fragment to merge with
    * @returns {ConditionalInitFragment} merged fragment
    */