cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

Use curl with r.js bundle of wire+when #227

Closed webpro closed 9 years ago

webpro commented 10 years ago

(We discussed this case on IRC 2013-09-06).

I'm having an issue with curl + wire when they are built (i.e. concatenated / named modules). the issue is only present in IE8, and I debugged it to the point that local requires, e.g. require('./object'); return undefined. Note that it's only IE8; IE9, Chrome, FF are all fine.

I've made a test case that reproduces the issue in IE8 (it's two files, also see index.html at the very bottom). The bundle is not optimized/minified.

It may not be fair to expect curl to load/parse an r.js bundle (in IE8), but it's possibly a bug in curl, and perhaps this compatibility is interesting after all.