Open ffMathy opened 1 year ago
Sourcemap
can only be set totrue
orfalse
. ... IfSourcemap
could be set toinline
orboth
as supported in the documentation, it would solve that issue: https://esbuild.github.io/api/#sourcemap
The SAM CLI Sourcemap
option is just a way to send NODE_OPTIONS: --enable-source-maps
. Is there a NODE_OPTIONS
flag that is equivalent to what you're suggesting?
I expect Sourcemap to be able to set to the valid values of the property in Esbuild.
That would need to be requested in https://github.com/aws/aws-sam-cli
Problem
According to https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build-typescript.html,
Sourcemap
can only be set totrue
orfalse
.This is causing issues with devcontainer debug functionality in TypeScript: #3266
If only
Sourcemap
could be set toinline
orboth
as supported in the documentation, it would solve that issue: https://esbuild.github.io/api/#sourcemapExpected behavior
I expect Sourcemap to be able to set to the valid values of the property in Esbuild.