Skip to content

Commit

Permalink
emit assets from modules during executing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Apr 12, 2021
1 parent f8ed312 commit 33c862e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4182,6 +4182,15 @@ This prevents using hashes of each other and should be avoided.`);
missingDependencies,
buildDependencies
);
if (module.buildInfo && module.buildInfo.assets) {
const { assets: moduleAssets, assetsInfo } = module.buildInfo;
for (const assetName of Object.keys(moduleAssets)) {
assets.set(assetName, {
source: moduleAssets[assetName],
info: assetsInfo ? assetsInfo.get(assetName) : undefined
});
}
}
try {
moduleCache.set(module, moduleObject);
const codeGenerationResult = codeGenerationResults.get(
Expand Down

0 comments on commit 33c862e

Please sign in to comment.