Skip to content

Commit

Permalink
Merge pull request mozilla#14 from paulb777/patch-1
Browse files Browse the repository at this point in the history
Make moduleDefines more space tolerant
  • Loading branch information
joewalker committed Sep 27, 2011
2 parents d20acf7 + c811b88 commit 32f24d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dryice/index.js
Expand Up @@ -740,7 +740,7 @@ copy.filter.moduleDefines = function(input, source) {
}
source = source.replace(/\.js$/, '');

return input.replace(/\bdefine\(\s*function\s*\(require,\s*exports,\s*module\)\s*\{/,
return input.replace(/\bdefine\s*\(\s*function\s*\(require,\s*exports,\s*module\)\s*\{/,
"define('" + source + "', ['require', 'exports', 'module' " + deps + "], function(require, exports, module) {");
};
copy.filter.moduleDefines.onRead = true;
Expand Down

0 comments on commit 32f24d2

Please sign in to comment.