mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Build: use hard-coded path to sizzle in selector-sizzle
Fixes gh-2898
This commit is contained in:
parent
d230d51731
commit
b536cd561f
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
define( [
|
||||
"./core",
|
||||
"sizzle"
|
||||
"../external/sizzle/dist/sizzle"
|
||||
], function( jQuery, Sizzle ) {
|
||||
|
||||
jQuery.find = Sizzle;
|
||||
|
5
test/jquery.js
vendored
5
test/jquery.js
vendored
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user