Allow inline sourcemaps for EsBuild
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## 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 to `true` or `false`.
This is causing issues with devcontainer debug functionality in TypeScript: #3266
If only `Sourcemap` could be set to `inline` or `both` as supported in the documentation, it would solve that issue: https://esbuild.github.io/api/#sourcemap
## Expected behavior
I expect Sourcemap to be able to set to the valid values of the property in Esbuild.
Contributor guide
Research direction
Start by locating the EsBuild configuration that validates or passes the Sourcemap setting, using the issue's linked AWS SAM and Esbuild documentation as context. Support the valid inline and both values, then verify that TypeScript devcontainer debugging can use the resulting sourcemaps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100