Skip to content

Commit

Permalink
chore: follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Jun 26, 2024
1 parent 5980522 commit bbe588a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/assetpack/src/core/pipes/PipeSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class PipeSystem
// this is to ensure that the asset is copied to the output directory without any other processing
if (asset.allMetaData.copy && pipe !== finalCopyPipe)
{
await this._transform(asset, pipeIndex);
await this._transform(asset, this.pipes.length - 1);

return;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/assetpack/src/manifest/pixiManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ function collectAssets(
const bundleAssets = localBundle.assets;
const finalAssets = asset.getFinalTransformedChildren();

if (asset.transformChildren.length > 0 && !asset.inheritedMetaData[tags!.mIgnore!])
if (asset.transformChildren.length > 0)
{
const nonIgnored = finalAssets.filter((finalAsset) => !finalAsset.inheritedMetaData[tags!.mIgnore!]);
const finalManifestAssets = finalAssets.filter((finalAsset) => !finalAsset.inheritedMetaData[tags!.mIgnore!]);

if (nonIgnored.length === 0) return;
if (finalManifestAssets.length === 0) return;

bundleAssets.push({
alias: getShortNames(stripTags(path.relative(entryPath, asset.path)), options),
src: nonIgnored
src: finalManifestAssets
.map((finalAsset) => path.relative(outputPath, finalAsset.path))
.sort((a, b) => b.localeCompare(a)),
data: options.includeMetaData ? {
Expand Down

0 comments on commit bbe588a

Please sign in to comment.