summaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-09-01 16:14:15 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-01 16:14:15 +0200
commit0eb09dbab1674a57d23ac97950a527d2e5a9c9fb (patch)
tree73db13431c06765d530b06df70f9263184e8b1f1 /packages/integrations
parentcc99b2814fc404d3b715bf015eb314b05d947c60 (diff)
downloadastro-0eb09dbab1674a57d23ac97950a527d2e5a9c9fb.tar.gz
astro-0eb09dbab1674a57d23ac97950a527d2e5a9c9fb.tar.zst
astro-0eb09dbab1674a57d23ac97950a527d2e5a9c9fb.zip
fix(vercel): Don't output an error message for failing to resolve sharp (#8354)
* fix(vercel): Don't output an error message for failing to resolve sharp * chore: changeset
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/vercel/src/lib/nft.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/integrations/vercel/src/lib/nft.ts b/packages/integrations/vercel/src/lib/nft.ts
index 6cdbe530a..585a45e99 100644
--- a/packages/integrations/vercel/src/lib/nft.ts
+++ b/packages/integrations/vercel/src/lib/nft.ts
@@ -49,6 +49,9 @@ export async function copyDependenciesToFunction(
// The import(astroRemark) sometimes fails to resolve, but it's not a problem
if (module === '@astrojs/') continue;
+ // Sharp is always external and won't be able to be resolved, but that's also not a problem
+ if (module === 'sharp') continue;
+
if (entryPath === file) {
console.warn(
`[@astrojs/vercel] The module "${module}" couldn't be resolved. This may not be a problem, but it's worth checking.`