aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/tasks/build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 0eff368f7..926348182 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -81,7 +81,7 @@ module.exports = function( grunt ) {
// Remove define wrappers, closure ends, and empty declarations
contents = contents
- .replace( /define\([^{]*?{/, "" )
+ .replace( /define\([^{]*?{\s*(?:("|')use strict\1(?:;|))?/, "" )
.replace( rdefineEnd, "" );
// Remove anything wrapped with