Skip to content

Commit e731324

Browse files
author
Tsvetan Raikov
committed
Fixed bundling after prepare changes
1 parent 67fbbe9 commit e731324

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/services/platform-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ export class PlatformService implements IPlatformService {
268268
if (changeInfo.configChanged || changeInfo.modulesChanged) {
269269
this.applyBaseConfigOption(platformData).wait();
270270
platformData.platformProjectService.processConfigurationFilesFromAppResources().wait();
271-
platformData.platformProjectService.interpolateConfigurationFile().wait();
272271
}
273272

273+
platformData.platformProjectService.interpolateConfigurationFile().wait();
274+
274275
this.$logger.out("Project successfully prepared ("+platform+")");
275276
}).future<void>()();
276277
}

lib/services/project-changes-info.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,13 @@ export class ProjectChangesInfo {
6060
}
6161
}
6262

63-
if (this.$options.bundle !== this.prepareInfo.bundle) {
64-
this.modulesChanged = true;
65-
this.prepareInfo.bundle = this.$options.bundle;
66-
}
67-
if (this.$options.release !== this.prepareInfo.release) {
63+
if (this.$options.bundle !== this.prepareInfo.bundle || this.$options.release !== this.prepareInfo.release) {
6864
this.appFilesChanged = true;
6965
this.appResourcesChanged = true;
7066
this.modulesChanged = true;
7167
this.configChanged = true;
7268
this.prepareInfo.release = this.$options.release;
69+
this.prepareInfo.bundle = this.$options.bundle;
7370
}
7471
if (this.modulesChanged || this.appResourcesChanged) {
7572
this.configChanged = true;

0 commit comments

Comments
 (0)