mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Ensure build tweaks are applied when new lines break up specific patterns.
Former-commit-id: 085a837521750457db9f20f3701984cba24a4f4f
This commit is contained in:
2
build.js
2
build.js
@@ -691,7 +691,7 @@
|
||||
*/
|
||||
function writeFile(source, filename) {
|
||||
// correct overly aggressive Closure Compiler minification
|
||||
source = source.replace('prototype={valueOf:1}', 'prototype={valueOf:1,y:1}');
|
||||
source = source.replace(/prototype\s*=\s*{\s*valueOf\s*:\s*1\s*}/, 'prototype={valueOf:1,y:1}');
|
||||
|
||||
// re-remove "use strict" added by the minifier
|
||||
if (!useStrict) {
|
||||
|
||||
Reference in New Issue
Block a user