serverless-esbuild icon indicating copy to clipboard operation
serverless-esbuild copied to clipboard

CLI option to skip bundling during local invoke

Open nolde opened this issue 2 years ago • 1 comments

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"

nolde avatar Apr 21 '23 01:04 nolde

There is similer requirement issue 338 for sls deploy command.

martinmicunda avatar Jul 22 '23 13:07 martinmicunda