Skip to content

Commit 5943f1d

Browse files
committed
Build: use hard-coded path to sizzle in selector-sizzle
Fixes gh-2898
1 parent c7431c7 commit 5943f1d

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
@@ -31,9 +31,6 @@ module.exports = function( grunt ) {
3131
startFile: "src/intro.js",
3232
endFile: [ "src/exports/global.js", "src/outro.js" ]
3333
},
34-
paths: {
35-
sizzle: "../external/sizzle/dist/sizzle"
36-
},
3734
rawText: {},
3835
onBuildWrite: convert
3936
};
@@ -58,7 +55,7 @@ module.exports = function( grunt ) {
5855
.replace( rdefineEnd, "" );
5956

6057
// Sizzle treatment
61-
} else if ( /^sizzle$/.test( name ) ) {
58+
} else if ( /\/sizzle$/.test( name ) ) {
6259
contents = "var Sizzle =\n" + contents
6360

6461
// 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)