I’ve set up a fresh SST project.. can someone remi...
# help
s
I’ve set up a fresh SST project.. can someone remind me how to get proper line numbers (of the actual file, not minified code)
Copy code
at Runtime.handler (/Volumes/SuperData/Sites/reelcrafter/v2-presentation2/.sst/artifacts/3fa176ba/src/lambda.js:4066:7)
t
🙂
You only need the
Copy code
NODE_OPTIONS=--enable-source-maps
env variable
sst is building the sourcemap for you
t
If this is for local development we actually have an issue with this right now. Enabling local source maps is causing a big cold start slowdown for some people
Haven't been able to figure out a work around yet
t
anyway to optionally not bundle in development?
t
I can expose this as an option, thinking was to make development match prod as close as possible so you don't get surprises
Even without bundling if you use TS your stacktraces will be off. I have some ideas on how to support source maps without the lag but havne't had time to implement yet
s
Ah yeah, this is local
t
I think setting node_options=--enable-source-maps for local would still make it work
s
Would it slow down the code rebuild process?
t
We had some testers report slower cold starts, I'm curious to see how prevalent it is because I personally didn't notice much