WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/IgnoreWarningsPlugin.js
@@ -5,21 +5,25 @@
"use strict";
/** @typedef {import("../declarations/WebpackOptions").IgnoreWarningsNormalized} IgnoreWarningsNormalized */
/** @typedef {import("./Compiler")} Compiler */
/** @typedef {import("./Compilation")} Compilation */
/** @typedef {(warning: Error, compilation: Compilation) => boolean} IgnoreFn */
const PLUGIN_NAME = "IgnoreWarningsPlugin";
class IgnoreWarningsPlugin {
   /**
    * @param {IgnoreWarningsNormalized} ignoreWarnings conditions to ignore warnings
    * Creates an instance of IgnoreWarningsPlugin.
    * @param {IgnoreFn[]} ignoreWarnings conditions to ignore warnings
    */
   constructor(ignoreWarnings) {
      /** @type {IgnoreFn[]} */
      this._ignoreWarnings = ignoreWarnings;
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */