Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 5e24712

Browse files
Merge pull request #1032 from telerik/kerezov/bundle-string
Make bundle option string
2 parents 780c960 + 411aee8 commit 5e24712

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

options.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,14 @@ export class OptionsBase {
184184
// For backwards compatibility
185185
// Previously profileDir had a default option and calling `this.$options.profileDir` always returned valid result.
186186
// Now the profileDir should be used from $settingsService, but ensure the `this.$options.profileDir` returns the same value.
187-
this.$settingsService.setSettings({ profileDir: this.argv.profileDir});
187+
this.$settingsService.setSettings({ profileDir: this.argv.profileDir });
188188
this.argv.profileDir = this.argv["profile-dir"] = this.$settingsService.getProfileDir();
189189

190+
// Default to "nativescript-dev-webpack" if only `--bundle` is passed
191+
if (this.argv.bundle !== undefined) {
192+
this.argv.bundle = this.argv.bundle || "webpack";
193+
}
194+
190195
this.adjustDashedOptions();
191196
}
192197

0 commit comments

Comments
 (0)