From d5afa605f7679298b612ad8bfcdbc224c2ecca0f Mon Sep 17 00:00:00 2001 From: Gary Mathews Date: Mon, 5 Aug 2019 17:59:55 -0700 Subject: [PATCH] fix(ios): source-maps property in tiapp.xml --- iphone/cli/commands/_build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iphone/cli/commands/_build.js b/iphone/cli/commands/_build.js index 137844137fd..5cc3ca0e8c0 100644 --- a/iphone/cli/commands/_build.js +++ b/iphone/cli/commands/_build.js @@ -1810,7 +1810,7 @@ iOSBuilder.prototype.validate = function validate(logger, config, cli) { if (cli.argv['source-maps']) { this.sourceMaps = true; // if they haven't, respect the tiapp.xml value if set one way or the other - } else if (cli.tiapp.hasOwnProperty['source-maps']) { // they've explicitly set a value in tiapp.xml + } else if (Object.prototype.hasOwnProperty.call(cli.tiapp, 'source-maps')) { // they've explicitly set a value in tiapp.xml this.sourceMaps = cli.tiapp['source-maps'] === true; // respect the tiapp.xml value } else { // otherwise turn on by default for non-production builds this.sourceMaps = this.deployType !== 'production'; @@ -2609,6 +2609,9 @@ iOSBuilder.prototype.loginfo = function loginfo() { } else { this.logger.info(__('Set to copy files instead of symlinking')); } + + this.logger.info(__('Transpile javascript: %s', (this.transpile ? 'true' : 'false').cyan)); + this.logger.info(__('Generate source maps: %s', (this.sourceMaps ? 'true' : 'false').cyan)); }; iOSBuilder.prototype.readBuildManifest = function readBuildManifest() {