diff options
author | 2023-09-01 16:14:15 +0200 | |
---|---|---|
committer | 2023-09-01 16:14:15 +0200 | |
commit | 0eb09dbab1674a57d23ac97950a527d2e5a9c9fb (patch) | |
tree | 73db13431c06765d530b06df70f9263184e8b1f1 /packages/integrations | |
parent | cc99b2814fc404d3b715bf015eb314b05d947c60 (diff) | |
download | astro-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.ts | 3 |
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.` |