diff --git a/bin/templates/cordova/lib/builders/ProjectBuilder.js b/bin/templates/cordova/lib/builders/ProjectBuilder.js index 6fe5501a..e92a18f5 100644 --- a/bin/templates/cordova/lib/builders/ProjectBuilder.js +++ b/bin/templates/cordova/lib/builders/ProjectBuilder.js @@ -55,7 +55,7 @@ const outputFileComparator = compareByAll([ * @param {'debug' | 'release'} buildType * @param {{arch?: string}} options */ -function findOutputFiles (bundleType, buildType, { arch }) { +function findOutputFiles (bundleType, buildType, { arch } = {}) { let files = glob.sync(`**/*.${bundleType}`, { absolute: true, cwd: path.resolve(this[`${bundleType}Dir`], buildType)