serverless-esbuild
serverless-esbuild copied to clipboard
pnpm: external modules bundled without their nested modules.
External modules are bundled without their dependencies.
Example serverless.yml:
custom:
esbuild:
packager: pnpm
external:
- '@sparticuz/chromium'
module @sparticuz/chromium has dependencies:
"dependencies": {
"follow-redirects": "^1.15.3",
"tar-fs": "^3.0.4"
}
They are not included after command pnpm exec serverless package:
To Reproduce Minimal repo to reproduce: https://github.com/UROjQ6r80p/serverless-esbuild-pnpm-no-nested-dependencies/tree/main
Expected behavior Dependencies of modules to be bundled together.
Versions (please complete the following information):
- OS: Windows 10
- Serverless Framework Version: 3.38.0
- Plugin Version: 1.49.0
+1
hey @dvictory thank you for raising it, currently, pnpm is not really reliable, so please keep an eye on this issue https://github.com/floydspace/serverless-esbuild/issues/506 it addresses that pnpm support must be adjusted
+1