Skip to content

Commit

Permalink
fix: pixiPipes: resolutions options overwrite (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Abaitov <>
  • Loading branch information
Fire7 authored Aug 6, 2024
1 parent ab3d570 commit c428b74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/assetpack/src/pixi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export function pixiPipes(config: PixiAssetPack)
const apConfig: Required<PixiAssetPack> = merge.recursive(defaultConfig, config);

// don't merge the resolutions, just overwrite them
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
apConfig.resolutions ??= config?.resolutions!;
apConfig.resolutions = config?.resolutions ?? apConfig.resolutions;

const pipes = [
webfont(),
Expand Down

0 comments on commit c428b74

Please sign in to comment.