I'm trying to bundle the npm package sharp which has symlinks. The package is added to my bundle however the symlinks are not included, causing my lambda to error out:
{
"errorMessage": "libvips-cpp.so.42: cannot open shared object file: No such file or directory",
"errorType": "Error",
"stackTrace": [
"Object.Module._extensions..node (module.js:597:18)",
"Module.load (module.js:487:32)",
"tryModuleLoad (module.js:446:12)",
"Function.Module._load (module.js:438:3)",
"Module.require (module.js:497:17)",
"require (internal/module.js:20:19)",
"Object.<anonymous> (/var/task/node_modules/sharp/lib/constructor.js:10:15)",
"Module._compile (module.js:570:32)",
"Object.Module._extensions..js (module.js:579:10)"
]
}