[Dojo-interest] Including AMD jQuery (and plugins) in a Dojo custom build

inghamc chris.ingham at live.com
Mon Apr 8 16:13:48 EDT 2013

Getting in deeper...I've tried to stage a 'jquery' module for my custom Dojo
I created a package.json, modified from  jQuery's on Github
<https://github.com/jquery/jquery/blob/master/package.json>   by changing
the version number to match my own (1.9.1), and adding "dojoBuild":
In jquery.profile.js I configure copyOnly to return true for jquery.min.js
and amd to return true for jquery.js
The Dojo build warnings from my original post (202, 206, 209) go away, but
now I get:
error(307) Failed to evaluate module tagged as pure AMD (fell back to
processing with regular expressions).        module: jquery/jquery; error:
ReferenceError: window is not defined
Looking at jquery.js (again, version 1.9.1), it certainly references window,
and I also see that it creates the globals window.jQuery and window.$
regardless of whether it calls define based on define.amd.jQuery being
I'm getting somewhat confused and discouraged at this point.  It appears
that jQuery is AMD-ish but not enough to satisfy Dojo's build scripts.  I
really want to limit the amount of &lt;script&gt; logic in my HTML but am
stuck in a chicken/egg loop trying to move my jQuery code into a (Dojo) AMD
Any help/expertise at this point would be greatly appreciated.

View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Including-AMD-jQuery-and-plugins-in-a-Dojo-custom-build-tp3995666p3995671.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20130408/500cb23c/attachment.htm 

More information about the Dojo-interest mailing list