Build: use hard-coded path to sizzle in selector-sizzle

Fixes gh-2898
This commit is contained in:
Timmy Willison 2016-02-10 13:47:25 -08:00
parent d230d51731
commit b536cd561f
3 changed files with 3 additions and 9 deletions

View File

@ -32,9 +32,6 @@ module.exports = function( grunt ) {
startFile: "src/intro.js",
endFile: [ "src/exports/global.js", "src/outro.js" ]
},
paths: {
sizzle: "../external/sizzle/dist/sizzle"
},
rawText: {},
onBuildWrite: convert
};
@ -59,7 +56,7 @@ module.exports = function( grunt ) {
.replace( rdefineEnd, "" );
// Sizzle treatment
} else if ( /^sizzle$/.test( name ) ) {
} else if ( /\/sizzle$/.test( name ) ) {
contents = "var Sizzle =\n" + contents
// Remove EXPOSE lines from Sizzle

View File

@ -1,6 +1,6 @@
define( [
"./core",
"sizzle"
"../external/sizzle/dist/sizzle"
], function( jQuery, Sizzle ) {
jQuery.find = Sizzle;

5
test/jquery.js vendored
View File

@ -18,10 +18,7 @@
// This detection allows AMD tests to be run in an iframe
if ( QUnit.urlParams.amd && window.QUnit ) {
require.config( {
baseUrl: path,
paths: {
sizzle: "external/sizzle/dist/sizzle"
}
baseUrl: path
} );
src = "src/jquery";