diff --git a/packages/assetpack/src/core/pipes/PipeSystem.ts b/packages/assetpack/src/core/pipes/PipeSystem.ts index 3939317..39b528c 100644 --- a/packages/assetpack/src/core/pipes/PipeSystem.ts +++ b/packages/assetpack/src/core/pipes/PipeSystem.ts @@ -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; } diff --git a/packages/assetpack/src/manifest/pixiManifest.ts b/packages/assetpack/src/manifest/pixiManifest.ts index 93298de..127525f 100644 --- a/packages/assetpack/src/manifest/pixiManifest.ts +++ b/packages/assetpack/src/manifest/pixiManifest.ts @@ -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 ? {