diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-25 22:35:15 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-26 22:50:22 +0200 |
commit | 3b356cfde431142eeaae4a916231487716ee4f23 (patch) | |
tree | aeaf677eef74c096b210567347aa4af46f5557d3 /build/tasks/build.js | |
parent | 0652c4d6a203a1c56ab08f62d6649ba31b7ddfab (diff) | |
download | jquery-3b356cfde431142eeaae4a916231487716ee4f23.tar.gz jquery-3b356cfde431142eeaae4a916231487716ee4f23.zip |
Build: Strip the strict-mode related comment in exports/global.js
The comment (& the JSHint pragma) doesn't make sense in the context of the
full built file.
Closes gh-3078
Diffstat (limited to 'build/tasks/build.js')
-rw-r--r-- | build/tasks/build.js | 5 |
1 files changed, 4 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 |