floydspace / serverless-esbuild

💨 A Serverless framework plugin to bundle JavaScript and TypeScript with extremely fast esbuild
MIT License
450 stars 138 forks source link

CLI option to skip bundling during local invoke #460

Open nolde opened 1 year ago

nolde commented 1 year ago

Is your feature request related to a problem? Please describe. A common way to debug issues is to test the same payload locally.

I don't use transpilation, just plain JS code, and I like being able to see correct line numbers in my callstacks, as it speeds debugging considerably. Would it be possible to add a cli option to skip bundling when invoking serverless invoke local, instead of having to change config all the time?

Describe the solution you'd like Support a custom param to skip bundling.

sls invoke local -f myFunctionName --path test.json --param="bundle=false"
martinmicunda commented 1 year ago

There is similer requirement issue 338 for sls deploy command.