diff --git a/tools/run-app.js b/tools/run-app.js index d190d21284..fa9545a2da 100644 --- a/tools/run-app.js +++ b/tools/run-app.js @@ -496,18 +496,6 @@ _.extend(AppRunner.prototype, { bundleResult = bundleResultOrRunResult.bundleResult; firstRun = false; - var plugins = cordova.getCordovaDependenciesFromStar( - bundleResult.starManifest); - - if (self.cordovaPlugins && ! _.isEqual(self.cordovaPlugins, plugins)) { - return { - outcome: 'outdated-cordova-plugins' - }; - } - // XXX #3006 This is racy --- we should get this from the pre-runner build, - // not from the first runner build. - self.cordovaPlugins = plugins; - var platforms = self.projectContext.platformList.getCordovaPlatforms(); platforms.sort(); if (self.cordovaPlatforms && @@ -520,6 +508,18 @@ _.extend(AppRunner.prototype, { // not from the first runner build. self.cordovaPlatforms = platforms; + var plugins = cordova.getCordovaDependenciesFromStar( + bundleResult.starManifest); + + if (self.cordovaPlugins && ! _.isEqual(self.cordovaPlugins, plugins)) { + return { + outcome: 'outdated-cordova-plugins' + }; + } + // XXX #3006 This is racy --- we should get this from the pre-runner build, + // not from the first runner build. + self.cordovaPlugins = plugins; + var serverWatchSet = bundleResult.serverWatchSet; // Read the settings file, if any