I don't think this would be a good idea. From the docs:
The reason we recommend placing Modernizr in the head is two-fold: the HTML5 Shiv (that enables HTML5 elements in IE) must execute before the
<body>
, and if you’re using any of the CSS classes that Modernizr adds, you’ll want to prevent a FOUC.
Anyway, you can specify the full paths in a requirejs.config:
// in your main
require.config({
paths: {
"modernizr": "lib/modernizr"
}
});
//in your module
define(["modernizr"], function (modernizr) {
});