Issue using externalPackages Not Excluding Dependencies
fabric/node in a convex node action and it seems it's dependency canvas cannot be bundled and will produce this issue when deploying convex functionsIt seems to me that the solution should be to add this to
convex.json as shown here https://docs.convex.dev/functions/bundling#external-packagesHowever this does not solve the issue
Also I think that adding
node.externalPackages does nothing as I did an experimentBut when I
npx convex dev --once --debug-bundle-path /tmp/myBundle I still see lodash being bundled. I would have expected myBundle to contain a node_modules folder with lodash there separately (if I have understood this correctly).Sample Code
I created a minimal reconstruction branched from one of the convex-samples, and put my node action in
convex/issue.tsSteps to reproduce
You can see my failed debugging attempt to externalize
lodash here https://github.com/ziggy6792/convex-issue/tree/debug/bundle-lodashAnd my failed attempt to externalize
canvas here https://github.com/ziggy6792/convex-issue.gitAny help would be greatly appreciated or if someone has a sample repo where
node.externalPackages is demonstrated that would be great (maybe I do not understand how it should work) Thanks!

