Use global.require in loadModule

This is required when preparing only the tns-core-modules for snapshotting. Otherwise webpack replaces this with custom webpack contexts (https://webpack.github.io/docs/configuration.html#automatically-created-contexts-defaults-module-xxxcontextxxx) which is not what we want.
This commit is contained in:
Jason Zhekov
2016-05-19 16:35:30 +03:00
parent df1d322ca0
commit f6eb458ff3

View File

@ -25,7 +25,7 @@ global.loadModule = function(name: string): any {
if (loader) { if (loader) {
return loader(); return loader();
} else { } else {
return require(name); return global.require(name);
} }
} }