aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-12-19 15:00:06 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-12-19 15:00:06 -0500
commita6f474e699f95a90f95228bd525490151acc0451 (patch)
tree3fbe1cf093b7fb7fdb4df0517754b4592050632d /build
parent09ede3d33b1a43c399bc9549c634af634513a81d (diff)
downloadjquery-a6f474e699f95a90f95228bd525490151acc0451.tar.gz
jquery-a6f474e699f95a90f95228bd525490151acc0451.zip
Build: Add the ability to remove global exposure.
Ref #14016
Diffstat (limited to 'build')
-rw-r--r--build/tasks/build.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 07d2942f1..d4cdd1233 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -196,6 +196,13 @@ module.exports = function( grunt ) {
excluded.splice( index, 1 );
}
+ // Replace exports/global with a noop noConflict
+ if ( (index = excluded.indexOf( "exports/global" )) > -1 ) {
+ config.rawText[ "exports/global" ] = "define(['../core']," +
+ "function( jQuery ) {\njQuery.noConflict = function() {};\n});";
+ excluded.splice( index, 1 );
+ }
+
grunt.verbose.writeflags( excluded, "Excluded" );
grunt.verbose.writeflags( included, "Included" );