WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/dependencies/AMDPlugin.js
@@ -46,6 +46,7 @@
class AMDPlugin {
   /**
    * Creates an instance of AMDPlugin.
    * @param {AmdOptions} amdOptions the AMD options
    */
   constructor(amdOptions) {
@@ -53,12 +54,12 @@
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */
   apply(compiler) {
      const amdOptions = this.amdOptions;
      const { amdOptions } = this;
      compiler.hooks.compilation.tap(
         PLUGIN_NAME,
         (compilation, { contextModuleFactory, normalModuleFactory }) => {
@@ -133,6 +134,7 @@
               });
            /**
             * Handles the hook callback for this code path.
             * @param {Parser} parser parser parser
             * @param {JavascriptParserOptions} parserOptions parserOptions
             * @returns {void}
@@ -141,6 +143,7 @@
               if (parserOptions.amd !== undefined && !parserOptions.amd) return;
               /**
                * Processes the provided option expr.
                * @param {string} optionExpr option expression
                * @param {string} rootName root name
                * @param {GetMembers} getMembers callback