vercel / ncc

Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
https://npmjs.com/@vercel/ncc
MIT License
8.99k stars 285 forks source link

BUG: Fails to bundle `sharp@0.33.1` #1153

Open jlarmstrongiv opened 6 months ago

jlarmstrongiv commented 6 months ago

In the latest versions of sharp (e.g. sharp@0.33.1), ncc no longer includes sharp-linux-x64.node or libvips-cpp.so.42

image

However, ncc previously included the correct sharp files (e.g. sharp@0.32.6)

image

Unfortunately, this bug occurs in a popular library and causes severe errors

jlarmstrongiv commented 6 months ago

Related CI failures https://github.com/vercel/ncc/pull/1151