Closed merceyz closed 3 years ago
All
cordova-lib depends on underscore but doesn't declare it as a dependency https://github.com/apache/cordova-lib/blob/5cc0a79b5897a62d25097233e9cbe89f41bb1264/src/cordova/serve.js#L24 https://github.com/apache/cordova-lib/blob/b9ad92a6693c2fe977309d17449fa95949c1f7c3/src/cordova/requirements.js#L20
cordova-lib
underscore
It was declared correctly before but seems to have been removed in https://github.com/apache/cordova-lib/pull/772
Ref https://github.com/apache/cordova-ios/pull/1105
Added underscore as a dependency
Ran cordova prepare under a strict dependency environment
cordova prepare
(platform)
(android)
Thanks a lot for spotting this and bringing it up here! I would rather remove the hidden dependency on underscore than to declare it (see #871). But let's see if someone else has an opinion on that.
Platforms affected
All
Motivation and Context
cordova-lib
depends onunderscore
but doesn't declare it as a dependency https://github.com/apache/cordova-lib/blob/5cc0a79b5897a62d25097233e9cbe89f41bb1264/src/cordova/serve.js#L24 https://github.com/apache/cordova-lib/blob/b9ad92a6693c2fe977309d17449fa95949c1f7c3/src/cordova/requirements.js#L20It was declared correctly before but seems to have been removed in https://github.com/apache/cordova-lib/pull/772
Ref https://github.com/apache/cordova-ios/pull/1105
Description
Added
underscore
as a dependencyTesting
Ran
cordova prepare
under a strict dependency environmentChecklist
(platform)
if this change only applies to one platform (e.g.(android)
)