WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/ConstPlugin.js
@@ -30,6 +30,7 @@
/** @typedef {Set<string>} Declarations */
/**
 * Collect declaration.
 * @param {Declarations} declarations set of declarations
 * @param {Identifier | Pattern} pattern pattern to collect declarations from
 */
@@ -64,6 +65,7 @@
};
/**
 * Gets hoisted declarations.
 * @param {Statement} branch branch to get hoisted declarations from
 * @param {boolean} includeFunctionDeclarations whether to include function declarations
 * @returns {string[]} hoisted declarations
@@ -138,7 +140,7 @@
class ConstPlugin {
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */
@@ -158,6 +160,7 @@
            );
            /**
             * Handles the hook callback for this code path.
             * @param {JavascriptParser} parser the parser
             */
            const handler = (parser) => {