Loading Local Esri Modules via AMD

662
6
08-07-2012 06:17 AM
ScottDavis
Occasional Contributor
Just wondering if it's possible to load locally hosted Esri modules via AMD rather than loading the entire jsapi layer file. I'd like to use my own version of dojo.js and just load the individual Esri modules. Here's my attempt on GitHub: https://github.com/stdavis/EsriPackageDemo but it's not working yet. Hoping that someone might have some ideas.
0 Kudos
6 Replies
derekswingley1
Frequent Contributor
This not currently possible as our modules are not fully AMD compliant (yet).
0 Kudos
ScottDavis
Occasional Contributor
Shouldn't it be possible using async: false which supports legacy modules defined with dojo.provide?
0 Kudos
derekswingley1
Frequent Contributor
It might be possible, but I haven't explored it.

Have you seen the examples linked from here:  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_dojo_amd.html
0 Kudos
ScottDavis
Occasional Contributor
Yes, I've seen those but they are using Esri's layer file (which includes dojo base). Would love to see an example of how to use Esri modules without loading the layer file.
0 Kudos
derekswingley1
Frequent Contributor
Would love to see an example of how to use Esri modules without loading the layer file.


AFAIK, that's not possible without an un-built version of the API source.
0 Kudos
ScottDavis
Occasional Contributor
AFAIK, that's not possible without an un-built version of the API source.


That's what I was afraid of. 😞
0 Kudos