sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
713 B

/*
* Test module for dojo/node plugin that tries to detect AMD
*/
(function(undefined){
var nodeamd = {};
nodeamd.test = 'foo';
// 'Improper' detection of AMD in a combined CommonJS/AMD modules, where the module thinks it is being loaded
// by an AMD loader, when in fact it could be being loaded by a CommonJS module loader. The dojo/node plugin
// needs to 'hide' define from these types of modules.
if (typeof define === 'function' && define.amd) {
define('nodeamd', [], function () {
return nodeamd;
});
}
else if (typeof module !== 'undefined' && module.exports) {
module.exports = nodeamd;
}
else if (typeof ender === 'undefined') {
this['nodeamd'] = nodeamd;
}
}).call(this);