Sam Hulick
08/18/2021, 10:23 PMserverless-webpack ..then I switched to serverless-esbuild and it would rip through 70+ functions in less than 15-20 secondsFrank
bundle.nodeModules in default function props?Sam Hulick
08/18/2021, 10:24 PMSam Hulick
08/18/2021, 10:24 PMsetDefaultFunctionPropsSam Hulick
08/18/2021, 10:25 PMAPI stack rely on knex. almost all of themSam Hulick
08/18/2021, 10:25 PMexternal (which would include it in node_modules) and it was still fastFrank
nodeModules getting installed per Lambda function.Frank
Frank
Frank
Sam Hulick
08/18/2021, 10:27 PMexternalModules just excludes the dependency completely, and nodeModules will throw it into node_modules in the Lambda ZIP, rather than bundle it into the code via esbuild, right?Frank
Sam Hulick
08/18/2021, 10:28 PMknex and pg into a Lambda layer then, and use externalModulesSam Hulick
08/18/2021, 10:28 PMFrank
package.json in there with just knex as dependency, and runs npm/yarn install , and bundle the node_modules with the functionFrank
Sam Hulick
08/18/2021, 10:29 PMSam Hulick
08/18/2021, 10:29 PMFrank