aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/tasks/build.js5
-rw-r--r--src/exports/global.js4
2 files changed, 8 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 926348182..ab1c993a0 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -39,7 +39,10 @@ module.exports = function( grunt ) {
skipSemiColonInsertion: true,
wrap: {
start: wrapper[ 0 ].replace( /\/\*jshint .* \*\/\n/, "" ),
- end: globals + wrapper[ 1 ]
+ end: globals.replace(
+ /\/\*\s*ExcludeStart\s*\*\/[\w\W]*?\/\*\s*ExcludeEnd\s*\*\//ig,
+ ""
+ ) + wrapper[ 1 ]
},
rawText: {},
onBuildWrite: convert
diff --git a/src/exports/global.js b/src/exports/global.js
index c8d593cbb..a50fbb6cd 100644
--- a/src/exports/global.js
+++ b/src/exports/global.js
@@ -1,7 +1,11 @@
+/* ExcludeStart */
+
// This file is included in a different way from all the others
// so the "use strict" pragma is not needed.
/* jshint strict: false */
+/* ExcludeEnd */
+
var
// Map over jQuery in case of overwrite