Skip to content

Commit

Permalink
fix(android): incremental build creates duplicate bootstrap entries (#…
Browse files Browse the repository at this point in the history
…11727)

- Bootstrap file fetching code was moved to core "process-js-task.js" file in 8.1.0.

Fixes TIMOB-27904
  • Loading branch information
jquick-axway authored and sgtcoolguy committed Jun 3, 2020
1 parent 8852026 commit 5ab9a5a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions android/cli/commands/_build.js
Expand Up @@ -2626,13 +2626,6 @@ AndroidBuilder.prototype.copyResources = function copyResources(next) {

if (!jsFiles[id] || !opts || !opts.onJsConflict || opts.onJsConflict(from, to, id)) {
jsFiles[id] = from;

// JS files that end with "*.bootstrap.js" are loaded before the "app.js".
// Add it as a require() compatible string to bootstrap array if it's a match.
const bootstrapPath = id.substr(0, id.length - 3); // Remove the ".js" extension.
if (bootstrapPath.endsWith('.bootstrap')) {
jsBootstrapFiles.push(bootstrapPath);
}
}

next();
Expand Down

0 comments on commit 5ab9a5a

Please sign in to comment.