From fd0d0cc903e7e241232ac3f8847897dd46b747e2 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Tue, 31 May 2016 22:03:07 -0600 Subject: [PATCH] Put root NLS at the NLS object root --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index e7746a0..f86a23b 100644 --- a/index.js +++ b/index.js @@ -141,7 +141,9 @@ function mapDependency(module, options, dep){ break; case 'dojo/request/default': // use module by has features - if(checkHasFeature(options, 'host-browser') || checkHasFeature(options, 'host-webworker')){ + if(checkHasFeature(options, 'config-requestProvider')){ + result_module = checkHasFeature(options, 'config-requestProvider') + }else if(checkHasFeature(options, 'host-browser') || checkHasFeature(options, 'host-webworker')){ result_module = "dojo/request/xhr"; }else if(checkHasFeature(options, 'host-node')) { result_module = "dojo/request/node"; @@ -178,9 +180,7 @@ function processNlsModule(module, parsed, options){ var f = new Function("'using strict'; return " + parsed.moduleBody + ";"); var nls_descr = f(); if (nls_descr && nls_descr.root){ - var res_nls = { - root: nls_descr.root - }; + var res_nls = nls_descr.root if (options.includeLanguages){ options.includeLanguages.forEach(function(lang){ if (nls_descr[lang]){