Skip to content

Commit b536cd5

Browse files
committed
Build: use hard-coded path to sizzle in selector-sizzle
Fixes jquerygh-2898
1 parent d230d51 commit b536cd5

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

build/tasks/build.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ module.exports = function( grunt ) {
3232
startFile: "src/intro.js",
3333
endFile: [ "src/exports/global.js", "src/outro.js" ]
3434
},
35-
paths: {
36-
sizzle: "../external/sizzle/dist/sizzle"
37-
},
3835
rawText: {},
3936
onBuildWrite: convert
4037
};
@@ -59,7 +56,7 @@ module.exports = function( grunt ) {
5956
.replace( rdefineEnd, "" );
6057

6158
// Sizzle treatment
62-
} else if ( /^sizzle$/.test( name ) ) {
59+
} else if ( /\/sizzle$/.test( name ) ) {
6360
contents = "var Sizzle =\n" + contents
6461

6562
// Remove EXPOSE lines from Sizzle

src/selector-sizzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"./core",
3-
"sizzle"
3+
"../external/sizzle/dist/sizzle"
44
], function( jQuery, Sizzle ) {
55

66
jQuery.find = Sizzle;

test/jquery.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
// This detection allows AMD tests to be run in an iframe
1919
if ( QUnit.urlParams.amd && window.QUnit ) {
2020
require.config( {
21-
baseUrl: path,
22-
paths: {
23-
sizzle: "external/sizzle/dist/sizzle"
24-
}
21+
baseUrl: path
2522
} );
2623
src = "src/jquery";
2724

0 commit comments

Comments
 (0)