startFile: "src/intro.js",
endFile: "src/outro.js"
},
+ paths: {
+ sizzle: "../bower_components/sizzle/dist/sizzle"
+ },
rawText: {},
onBuildWrite: convert
};
.replace( rdefineEnd, "" );
// Sizzle treatment
- } else if ( /\/sizzle$/.test( name ) ) {
+ } else if ( /^sizzle$/.test( name ) ) {
contents = "var Sizzle =\n" + contents
// Remove EXPOSE lines from Sizzle
.replace( /\/\/\s*EXPOSE[\w\W]*\/\/\s*EXPOSE/, "return Sizzle;" );
define([
"./core",
- "../bower_components/sizzle/dist/sizzle"
+ "sizzle"
], function ( jQuery, Sizzle ) {
jQuery.find = Sizzle;
// If QUnit is on window, this is the main window
// This detection allows AMD tests to be run in an iframe
if ( QUnit.urlParams.amd && window.QUnit ) {
- require.config({ baseUrl: path });
+ require.config({
+ baseUrl: path,
+ paths: {
+ sizzle: path + "bower_components/sizzle/dist/sizzle"
+ }
+ });
src = "src/jquery";
// Include tests if specified
if ( typeof loadTests !== "undefined" ) {