Skip to content

Commit 572f280

Browse files
dpoguestevengill
authored andcommitted
CB-11777: Restore plugins before preparing
This closes #487
1 parent 2aacd20 commit 572f280

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
@@ -53,6 +53,9 @@ function prepare(options) {
5353
return platforms.getPlatformApi(p, platform_path).getPlatformInfo().locations.www;
5454
});
5555
options.paths = paths;
56+
}).then(function () {
57+
options = cordova_util.preProcessOptions(options);
58+
return restore.installPluginsFromConfigXML(options);
5659
}).then(function() {
5760
options = cordova_util.preProcessOptions(options);
5861
options.searchpath = options.searchpath || config_json.plugin_search_path;
@@ -63,8 +66,6 @@ function prepare(options) {
6366
return platforms.getPlatformApi(platform).getPlatformInfo().locations.www;
6467
});
6568
return hooksRunner.fire('after_prepare', options);
66-
}).then(function () {
67-
return restore.installPluginsFromConfigXML(options);
6869
});
6970
});
7071
}

0 commit comments

Comments
 (0)