You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 behavior ssh2 present in package.
Screenshots or Logs
NA
Versions (please complete the following information):
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...The text was updated successfully, but these errors were encountered: