WXL
4 天以前 4d9da000fbe74d344e0e4580b138e79d4ad98ede
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}
    */