mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Remove extraneous spaces from non-minified builds.
Former-commit-id: ec8e18d00884cab96031c061ed32002f41edc0e5
This commit is contained in:
2
build.js
2
build.js
@@ -576,6 +576,8 @@
|
||||
return source
|
||||
// remove pseudo private properties
|
||||
.replace(/(?:(?:\s*\/\/.*)*\s*lodash\._[^=]+=.+\n)+/g, '\n')
|
||||
// remove extraneous whitespace
|
||||
.replace(/^ *\n/gm, '\n')
|
||||
// remove lines with just whitespace and semicolons
|
||||
.replace(/^ *;\n/gm, '')
|
||||
// consolidate multiple newlines
|
||||
|
||||
Reference in New Issue
Block a user