WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/EvalDevToolModulePlugin.js
@@ -30,6 +30,7 @@
`);
/**
 * Defines the eval dev tool module plugin options type used by this module.
 * @typedef {object} EvalDevToolModulePluginOptions
 * @property {DevtoolNamespace=} namespace namespace
 * @property {string=} sourceUrlComment source url comment
@@ -40,18 +41,22 @@
class EvalDevToolModulePlugin {
   /**
    * Creates an instance of EvalDevToolModulePlugin.
    * @param {EvalDevToolModulePluginOptions=} options options
    */
   constructor(options = {}) {
      /** @type {DevtoolNamespace} */
      this.namespace = options.namespace || "";
      /** @type {string} */
      this.sourceUrlComment = options.sourceUrlComment || "\n//# sourceURL=[url]";
      /** @type {DevtoolModuleFilenameTemplate} */
      this.moduleFilenameTemplate =
         options.moduleFilenameTemplate ||
         "webpack://[namespace]/[resourcePath]?[loaders]";
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */