Skip to content

Commit

Permalink
fix: report success at the right time (#115)
Browse files Browse the repository at this point in the history
* report success at the right time

* add back release child buffers
  • Loading branch information
GoodBoyDigital authored Feb 5, 2025
1 parent 57aeca9 commit 45326fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/assetpack/src/core/AssetPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ export class AssetPack
{
Logger.error(`[AssetPack] Transform failed: ${e.message}`);
});

Logger.report({
type: 'buildSuccess',
});
},
onComplete: async (root: Asset) =>
{
Expand All @@ -131,11 +127,14 @@ export class AssetPack
// write back to the cache...
(assetCache as AssetCache).write(root);

// release the buffers from the cache
root.releaseChildrenBuffers();

Logger.info('cache updated.');
}

Logger.report({
type: 'buildSuccess',
});
}
});
}
Expand Down

0 comments on commit 45326fe

Please sign in to comment.