Skip to content
Browse files

Build: use hard-coded path to sizzle in selector-sizzle

Fixes gh-2898
1 parent c7431c7 commit 5943f1d7ffef41cc1a99bffe189f6d111fbccfd0 @timmywil timmywil committed
Showing with 3 additions and 9 deletions.
  1. +1 −4 build/tasks/build.js
  2. +1 −1 src/selector-sizzle.js
  3. +1 −4 test/jquery.js
View
5 build/tasks/build.js
@@ -31,9 +31,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
};
@@ -58,7 +55,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
View
2 src/selector-sizzle.js
@@ -1,6 +1,6 @@
define( [
"./core",
- "sizzle"
+ "../external/sizzle/dist/sizzle"
], function( jQuery, Sizzle ) {
jQuery.find = Sizzle;
View
5 test/jquery.js
@@ -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";

0 comments on commit 5943f1d

Please sign in to comment.
Something went wrong with that request. Please try again.