I am creating a wirejs app using requirejs. For IE 8 I am using polyfills: cujo/poly js library and require this lib be preloaded before wirejs is loaded.
If I used curl as the AMD loader, as per the documentation, I have following option available:
curl({ preloads: [ "poly" ] });
What works for me is:
// in index.html
<script data-main="js/app" src="js/lib/require.js"></script>
// in js/app.js
define(function(){
   // set configuration options
   requirejs.config({// set config with paths});
   // require the library and HOPE it will load before
   // everything else!
   require(['poly']);
});
This document recommends using shim config for this purpose. However, I haven't been able to figure out how. Some of the things I tried:
// DID NOT WORK!!
requirejs.config({
....
"shim": {
   "poly": {
     "exports": "poly"
    }
 }
});
Is there a better way to approach this?
Any help appreciated!...thanks for your time!