From 2c89d08dff77d7d3ceff7a982e3ee9df021af7fb Mon Sep 17 00:00:00 2001 From: Welkin Wong Date: Thu, 5 Feb 2026 15:11:07 +0800 Subject: [PATCH] fix(build): fix cordova platforms detection to avoid modern/legacy --- tools/project-context.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/project-context.js b/tools/project-context.js index 83633ec6a1..d8e85fe45b 100644 --- a/tools/project-context.js +++ b/tools/project-context.js @@ -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 () {