Skip to content

Commit ef2a06e

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

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
@@ -31,10 +31,7 @@
3131
// This detection allows AMD tests to be run in an iframe
3232
if ( QUnit.urlParams.amd && window.QUnit ) {
3333
require.config( {
34-
baseUrl: path,
35-
paths: {
36-
sizzle: "external/sizzle/dist/sizzle"
37-
}
34+
baseUrl: path
3835
} );
3936
src = "src/jquery";
4037

0 commit comments

Comments
 (0)