class names to load.
Optional
options: LoadJsOptionsthe loading options.
A promise resolving the js file(s).
import loadJS from "apprt-core/load-js";
loadJS("esri/Map").then(function(Map){
return new Map();
});
import loadJS from "apprt-core/load-js";
loadJS(["test/Class1","test/Class2"]).then(function(clazzes){
let Class1 = clazzes[0];
let Class2 = clazzes[1];
...
});
Generated using TypeDoc
Loads a js file, by wrapping 'require' into a Promise.