As of Intern 1.3, you may specify alternative loaders, such as the one from Esri, in the useLoader
configuration property. For the Esri loader, you would use this:
// intern.js
define({
/* … other configuration options … */
useLoader: { 'host-browser': 'http://js.arcgis.com/3.7/' }
/* … */
});
Note that Esri uses the old Dojo 1 loader; if you want to specify additional dojoConfig
criteria like async: true
, etc., add the dojoConfig
global object within your configuration file:
define([], function () {
this.dojoConfig = { async: 1 };
return {
/* … configuration … */
};
});