@@ -31,7 +31,7 @@ AMDDefineDependency.Template.prototype.apply = function(dep, source, outputOptio
3131 source . insert ( 0 , "var " + localModuleVar + ";" ) ;
3232 source . replace ( dep . range [ 0 ] , dep . functionRange [ 0 ] - 1 ,
3333 "!(" + localModuleVar + " = (" ) ;
34- source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , ".call(exports, require , exports, module)))" ) ;
34+ source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , ".call(exports, __webpack_require__ , exports, module)))" ) ;
3535 } else if ( dep . arrayRange && dep . functionRange && ! dep . objectRange ) {
3636 source . insert ( 0 , "var __WEBPACK_AMD_DEFINE_ARRAY__, " + localModuleVar + ";" ) ;
3737 source . replace ( dep . range [ 0 ] , dep . arrayRange [ 0 ] - 1 ,
@@ -42,7 +42,7 @@ AMDDefineDependency.Template.prototype.apply = function(dep, source, outputOptio
4242 source . insert ( 0 , "var __WEBPACK_AMD_DEFINE_FACTORY__, " + localModuleVar + ";" ) ;
4343 source . replace ( dep . range [ 0 ] , dep . functionRange [ 0 ] - 1 ,
4444 "!(__WEBPACK_AMD_DEFINE_FACTORY__ = (" ) ;
45- source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , "), (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (" + localModuleVar + " = __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, require , exports, module)) : " + localModuleVar + " = __WEBPACK_AMD_DEFINE_FACTORY__))" ) ;
45+ source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , "), (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (" + localModuleVar + " = __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__ , exports, module)) : " + localModuleVar + " = __WEBPACK_AMD_DEFINE_FACTORY__))" ) ;
4646 }
4747 } else {
4848 if ( dep . objectRange && ! dep . functionRange ) {
@@ -53,7 +53,7 @@ AMDDefineDependency.Template.prototype.apply = function(dep, source, outputOptio
5353 source . insert ( 0 , "var __WEBPACK_AMD_DEFINE_RESULT__;" ) ;
5454 source . replace ( dep . range [ 0 ] , dep . functionRange [ 0 ] - 1 ,
5555 "!(__WEBPACK_AMD_DEFINE_RESULT__ = (" ) ;
56- source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , ".call(exports, require , exports, module)), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))" ) ;
56+ source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , ".call(exports, __webpack_require__ , exports, module)), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))" ) ;
5757 } else if ( dep . arrayRange && dep . functionRange && ! dep . objectRange ) {
5858 source . insert ( 0 , "var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;" ) ;
5959 source . replace ( dep . range [ 0 ] , dep . arrayRange [ 0 ] - 1 ,
@@ -64,7 +64,7 @@ AMDDefineDependency.Template.prototype.apply = function(dep, source, outputOptio
6464 source . insert ( 0 , "var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;" ) ;
6565 source . replace ( dep . range [ 0 ] , dep . functionRange [ 0 ] - 1 ,
6666 "!(__WEBPACK_AMD_DEFINE_FACTORY__ = (" ) ;
67- source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , "), (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_RESULT__ = __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, require , exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : module.exports = __WEBPACK_AMD_DEFINE_FACTORY__))" ) ;
67+ source . replace ( dep . functionRange [ 1 ] , dep . range [ 1 ] - 1 , "), (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_RESULT__ = __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__ , exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : module.exports = __WEBPACK_AMD_DEFINE_FACTORY__))" ) ;
6868 }
6969 }
7070} ;
0 commit comments