From 2f985ff826cf55f1fc1fe174716098f758fa5c4d Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Fri, 16 Aug 2013 12:54:43 -0400 Subject: When converting the source to AMD, don't forget to AMD --- build/tasks/build.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/tasks/build.js b/build/tasks/build.js index 753ca60dc..adbc30923 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -57,10 +57,13 @@ module.exports = function( grunt ) { } // Remove define wrappers, closure ends, and empty declarations + // Unless it's the proper AMD define contents = contents .replace( /define\([^{]*?{/, "" ) - .replace( rdefineEnd, "" ) - // Remove empty definitions + .replace( rdefineEnd, "" ); + + // Remove empty definitions + contents = contents .replace( /define\(\[[^\]]+\]\)[\W\n]+$/, "" ); } return contents; -- cgit v1.2.3