Skip to content

Commit 03c2833

Browse files
committed
CB-11777: Restore plugins before preparing
1 parent f8b58c7 commit 03c2833

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cordova-lib/src/cordova/prepare.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ function prepare(options) {
5252
return platforms.getPlatformApi(p, platform_path).getPlatformInfo().locations.www;
5353
});
5454
options.paths = paths;
55+
}).then(function () {
56+
options = cordova_util.preProcessOptions(options);
57+
return restore.installPluginsFromConfigXML(options);
5558
}).then(function() {
5659
options = cordova_util.preProcessOptions(options);
5760
options.searchpath = options.searchpath || config_json.plugin_search_path;
@@ -62,8 +65,6 @@ function prepare(options) {
6265
return platforms.getPlatformApi(platform).getPlatformInfo().locations.www;
6366
});
6467
return hooksRunner.fire('after_prepare', options);
65-
}).then(function () {
66-
return restore.installPluginsFromConfigXML(options);
6768
});
6869
});
6970
}

0 commit comments

Comments
 (0)