Use global require to avoid custom webpack resolve

This commit is contained in:
Jason Zhekov
2016-06-28 10:47:17 +03:00
parent c2b984664c
commit ffb82e250a

View File

@ -57,7 +57,7 @@ export function getComponentModule(elementName: string, namespace: string, attri
try { try {
// module inside tns_modules // module inside tns_modules
instanceModule = require(pathInsideTNSModules); instanceModule = global.require(pathInsideTNSModules);
moduleId = pathInsideTNSModules; moduleId = pathInsideTNSModules;
} catch (e) { } catch (e) {
// module at root level in the app. // module at root level in the app.