:wave: hey all! is there a setting for the `.js.m...
# help
b
👋 hey all! is there a setting for the
.js.map
to work properly that I'm missing? they get shipped to lambda, but my error stacks are still referencing random lines in the
.js
files. This is my tsconfig
Copy code
{
  "extends": "@tsconfig/node14",
  "include": [
    "stacks",
    "src"
  ]
}
and I'm on sst
v0.50.1
t
We have a PR to enable this by default will be merged soon: https://github.com/serverless-stack/serverless-stack/pull/1030 In the mean time add an env var
NODE_OPTIONS: "--enable-source-maps"
b
I'll patiently wait 👍
m
Will that remove the need to use something like https://github.com/evanw/node-source-map-support?
s
That's right @Matt Morgan.
NODE_OPTIONS: "--enable-source-maps"
was added since node 12, if i remember right.