Skip to content

Commit

Permalink
docs: fix website typo
Browse files Browse the repository at this point in the history
Signed-off-by: Ashley Claymore <[email protected]>
  • Loading branch information
acutmore committed Sep 19, 2024
1 parent 98ca6b8 commit 8104149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var Cat = /** @class */ (function () {
throw Error();
```

That's because TypeScript is performing "down-leveling" to convert your modern JavaScript into something that can run on older JavaScript engines. Because this moves the code around, error stacks and breakpoint locations which not match; so sourcemaps are also generated to correct for this.
That's because TypeScript is performing "down-leveling" to convert your modern JavaScript into something that can run on older JavaScript engines. Because this moves the code around, error stacks and breakpoint locations will not match; so sourcemaps are also generated to correct for this.

Let's try disabling down-leveling using the `tsconfig.json` option `target: "esnext"`:

Expand Down Expand Up @@ -151,7 +151,7 @@ es/error-stack.js n=100000 method="sourcemap": 55,918.729592805634

### Resilience

Bloomberg is a heavy user of sourcemaps, and we have some engineering who are helping to [make them even better.](https://ecma-international.org/news/ecma-tc39-ecmascript-initiates-a-new-task-group-to-standardize-source-maps/) For sourcemaps to work, many different tools must perfectly align end-to-end. This can lead to them [sometimes failing](https://x.com/robpalmer2/status/1583581325289656320). With `ts-blank-space` your debugging experience will be based on accurate locations even if your environment is misconfigured or you find yourself in situations when sourcemaps would have been inaccessible.
Bloomberg is a heavy user of sourcemaps, and we have some engineers who are helping to [make them even better.](https://ecma-international.org/news/ecma-tc39-ecmascript-initiates-a-new-task-group-to-standardize-source-maps/) For sourcemaps to work, many different tools must perfectly align end-to-end. This can lead to them [sometimes failing](https://x.com/robpalmer2/status/1583581325289656320). With `ts-blank-space` your debugging experience will be based on accurate locations even if your environment is misconfigured or you find yourself in situations when sourcemaps would have been inaccessible.

## Maintenance Benefits

Expand Down

0 comments on commit 8104149

Please sign in to comment.