mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 17:38:53 +00:00
[API] Ensure uniqueness of impls when rebundling
Avoids redundant argument names in generated JS files.
This commit is contained in:
parent
5bbbdd4e50
commit
29acbfdb9c
@ -16,7 +16,12 @@ function indent(str, depth) {
|
||||
|
||||
function findImpls(bundleContents) {
|
||||
return _(bundleContents.extensions || {})
|
||||
.map().flatten().pluck('implementation').filter().value();
|
||||
.map()
|
||||
.flatten()
|
||||
.pluck('implementation')
|
||||
.filter()
|
||||
.uniq()
|
||||
.value();
|
||||
}
|
||||
|
||||
function toIdentifier(impl) {
|
||||
|
Loading…
Reference in New Issue
Block a user