}
// Remove define wrappers, closure ends, and empty declarations
+ // Unless it's the proper AMD define
contents = contents
.replace( /define\([^{]*?{/, "" )
- .replace( rdefineEnd, "" )
- // Remove empty definitions
+ .replace( rdefineEnd, "" );
+
+ // Remove empty definitions
+ contents = contents
.replace( /define\(\[[^\]]+\]\)[\W\n]+$/, "" );
}
return contents;
+define([
+ "../core"
+], function( jQuery ) {
+
// Register as a named AMD module, since jQuery can be concatenated with other
// files that may use define, but not via a proper concatenation script that
// understands anonymous AMD modules. A named AMD is safest and most robust
define( "jquery", [], function() {
return jQuery;
});
-}
\ No newline at end of file
+}
+
+});
\ No newline at end of file
"./effects/animated-selector",
"./offset",
"./dimensions",
- "./deprecated"
+ "./deprecated",
+ "./exports/amd"
], function( jQuery ) {
// Expose jQuery and $ identifiers, even in