Describe the bug
My code import a module ssh2-sftp-client which has module ssh2 as a dependency which is listed in esbuild.config.ts externals (contains .node files).
ssh2 is in .esbuild/.build folder but missing in final zip package.
To Reproduce
Add dependencies ssh2-sftp-client and ssh2, add ssh2 to externals, and package a file importing ssh2-sftp-client.
Expected behaviorssh2 present in package.
Screenshots or Logs
NA
Versions (please complete the following information):
OS: Windows
Serverless Framework Version: serverless@3.38.0
Plugin Version: serverless-esbuild@1.50.0
Additional context
Is ssh2 is imported from directly from the file importing ssh2-sftp-client, then everything is ok. That's my workaround...
Describe the bug My code import a module
ssh2-sftp-client
which has modulessh2
as a dependency which is listed inesbuild.config.ts
externals (contains.node
files).ssh2
is in.esbuild/.build
folder but missing in final zip package.To Reproduce Add dependencies
ssh2-sftp-client
andssh2
, addssh2
to externals, and package a file importingssh2-sftp-client
.Expected behavior
ssh2
present in package.Screenshots or Logs NA
Versions (please complete the following information):
Additional context Is
ssh2
is imported from directly from the file importingssh2-sftp-client
, then everything is ok. That's my workaround...