chore: attempts to abstract sharp to optional dependency

This commit is contained in:
James
2024-03-05 16:12:07 -05:00
parent 770c7173ec
commit e490f0bce6
9 changed files with 83 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
import path from 'path'
import sharp from 'sharp'
import type { Config, SanitizedConfig } from '../packages/payload/src/config/types'
@@ -161,6 +162,7 @@ export function buildConfigWithDefaults(testConfig?: Partial<Config>): Promise<S
}),
],
}),
sharp,
telemetry: false,
...testConfig,
}