fix(build): fix cordova platforms detection to avoid modern/legacy

This commit is contained in:
Welkin Wong
2026-02-05 15:11:07 +08:00
parent dc7d21ddb1
commit 2c89d08dff

View File

@@ -1470,8 +1470,7 @@ Object.assign(exports.PlatformList.prototype, {
getCordovaPlatforms: function () {
var self = this;
return _.difference(self._platforms,
exports.PlatformList.DEFAULT_PLATFORMS);
return _.intersection(self._platforms, ['ios', 'android']);
},
usesCordova: function () {