diff --git a/tools/isobuild/bundler.js b/tools/isobuild/bundler.js index 57214a95a2..dda59cd2af 100644 --- a/tools/isobuild/bundler.js +++ b/tools/isobuild/bundler.js @@ -1177,26 +1177,6 @@ class Target { // ImportScanner's knowledge of which modules are really imported. this.watchSet.merge(entry.importScannerWatchSet); } - - // Any source resource that the content or hash was accessed for are marked - // as definitely used. - // If there are any output resources for these in the js output, they are - // excluded from the importScannerWatchSet so they are only marked as - // definitely used if their content was used, not if they are added - // to the built app. - unibuild.resources.forEach(resource => { - if (resource.type !== 'source' || resource._dataUsed === false) { - return; - } - - assert.strictEqual( - typeof resource._dataUsed, - "boolean" - ); - - let absPath = files.pathJoin(sourceRoot, resource.path); - this.watchSet.addFile(absPath, resource.hash); - }); }); if (buildmessage.jobHasMessages()) {