WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/ExternalsPlugin.js
@@ -13,12 +13,14 @@
/** @typedef {import("../declarations/WebpackOptions").Externals} Externals */
/** @typedef {import("./Compiler")} Compiler */
/** @typedef {import("./ExternalModule").Imported} Imported */
/** @typedef {import("./Dependency")} Dependency */
const PLUGIN_NAME = "ExternalsPlugin";
class ExternalsPlugin {
   /**
    * @param {ExternalsType} type default external type
    * Creates an instance of ExternalsPlugin.
    * @param {ExternalsType | ((dependency: Dependency) => ExternalsType)} type default external type
    * @param {Externals} externals externals config
    */
   constructor(type, externals) {
@@ -27,7 +29,7 @@
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */