When using defineFunction in Amplify Gen2,
TypeScript code is transpiled and minified, making it difficult to directly modify the Lambda function when opening it in the management console.
There may be times when we want to make small additions to the code for debugging or verifying functionality.
I would like an option to be added to defineFunction that prevents minification.
Use case
export const function = defineFunction({
name: 'function-name',
entry: './handler.ts',
runtime: 20,
timeoutSeconds: 900,
environment :{
TABLE_NAME: 'xxx',
},
schedule: "0 0 ? * 1",
minify: false, << like this
});
Environment information
Describe the feature
When using defineFunction in Amplify Gen2, TypeScript code is transpiled and minified, making it difficult to directly modify the Lambda function when opening it in the management console.
There may be times when we want to make small additions to the code for debugging or verifying functionality. I would like an option to be added to defineFunction that prevents minification.
Use case