Adam Fanello
01/14/2022, 11:06 PM"sourceMap": true,
set and import "source-map-support/register";
at the beginning of each Lambda handler. I see .js.map
files being generated, but stack traces are showing .js files with large line numbers. Tips?Ross Gerbasi
01/15/2022, 12:41 AM--enable-source-maps
?
app.setDefaultFunctionProps({
environment: {
NODE_OPTIONS: '--enable-source-maps',
},
runtime: 'nodejs14.x',
})
Adam Fanello
01/15/2022, 12:48 AMRoss Gerbasi
01/15/2022, 12:49 AMAdam Fanello
01/15/2022, 12:50 AMAdam Fanello
01/15/2022, 12:52 AMAdam Fanello
01/15/2022, 12:54 AMRoss Gerbasi
01/15/2022, 1:20 AM"source-map-support/register";
@Frank gave me the node_options
tip. Maybe this needs to be in the docs somewhere more obvious?thdxr
01/15/2022, 1:39 AMthdxr
01/15/2022, 1:39 AM