From ef2a06eb615470574f974f3bf5d266899afd1610 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 10 Feb 2016 13:47:25 -0800 Subject: [PATCH] Build: use hard-coded path to sizzle in selector-sizzle Fixes gh-2898 --- build/tasks/build.js | 5 +---- src/selector-sizzle.js | 2 +- test/jquery.js | 5 +---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 664ccafe9..7034e8dd8 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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 diff --git a/src/selector-sizzle.js b/src/selector-sizzle.js index dcee45f37..9728a1f57 100644 --- a/src/selector-sizzle.js +++ b/src/selector-sizzle.js @@ -1,6 +1,6 @@ define( [ "./core", - "sizzle" + "../external/sizzle/dist/sizzle" ], function( jQuery, Sizzle ) { jQuery.find = Sizzle; diff --git a/test/jquery.js b/test/jquery.js index a595e3b47..e418a7e9e 100644 --- a/test/jquery.js +++ b/test/jquery.js @@ -31,10 +31,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"; -- 2.39.5