Add lodash moduleId=… build option.

Former-commit-id: a68a2085028a3832181aaf02081311d84e93fab5
This commit is contained in:
John-David Dalton
2012-11-08 11:57:56 -08:00
parent d255f8400f
commit f478fa8029
3 changed files with 36 additions and 24 deletions

View File

@@ -29,7 +29,7 @@
// move vars exposed by the Closure Compiler into the IIFE
source = source.replace(/^((?:(['"])use strict\2;)?(?:var (?:[a-z]+=(?:!0|!1|null)[,;])+)?)([\s\S]*?function[^)]+\){)/, '$3$1');
// correct overly aggressive Closure Compiler minification
// correct overly aggressive Closure Compiler advanced optimizations
source = source.replace(/prototype\s*=\s*{\s*valueOf\s*:\s*1\s*}/, 'prototype={valueOf:1,y:1}');
// unescape properties (i.e. foo["bar"] => foo.bar)