mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
__module adjustment
This commit is contained in:
parent
0f83977dee
commit
460a0141d2
2
dist/system.js
vendored
2
dist/system.js
vendored
@ -146,7 +146,7 @@ global.upgradeSystemLoader = function() {
|
||||
if (output instanceof global.Module)
|
||||
return output;
|
||||
else
|
||||
return new global.Module(output && output.__module ? output.__module : { __defaultOnly: true, 'default': output });
|
||||
return new global.Module(output && output.__module ? (delete output.__module, output) : { __defaultOnly: true, 'default': output });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
2
dist/system.min.js
vendored
2
dist/system.min.js
vendored
File diff suppressed because one or more lines are too long
@ -81,7 +81,7 @@
|
||||
if (output instanceof global.Module)
|
||||
return output;
|
||||
else
|
||||
return new global.Module(output && output.__module ? output.__module : { __defaultOnly: true, 'default': output });
|
||||
return new global.Module(output && output.__module ? (delete output.__module, output) : { __defaultOnly: true, 'default': output });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user