File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11/********** Footer **********/
2- module . exports = __require ( 0 ) ;
2+ if ( typeof module === "object" )
3+ module . exports = __require ( 0 ) ;
4+ else
5+ return __require ( 0 ) ;
36} ) ( ) ;
47/********** End of footer **********/
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function __require(uid, parentUid) {
1717// Populate the cache initially with an empty `exports` Object
1818__modulesCache [ uid ] = { "exports" : { } , "loaded" : false } ;
1919__moduleIsCached [ uid ] = true ;
20- if ( uid === 0 ) {
20+ if ( uid === 0 && typeof require === "object" ) {
2121require . main = __modulesCache [ 0 ] ;
2222} else {
2323__modulesCache [ uid ] . parent = __modulesCache [ parentUid ] ;
Original file line number Diff line number Diff line change 11{
22"name" : " node-module-concat" ,
3- "version" : " 1.4 .0" ,
3+ "version" : " 1.5 .0" ,
44"description" : " Node.js module concatenation library" ,
55"main" : " index.js" ,
66"dependencies" : {
You can’t perform that action at this time.
0 commit comments