evanw / evanw/node-source-map-support

Color support?

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

When I run my script w/out `source-map-support` in recent versions of node, internal code is greyed out:

![](https://i.imgur.com/lkfCQAi.png)

When I run with `source-map-support` I get a nice trace showing my TypeScript file but no colors:

![](https://i.imgur.com/CmrMzWD.png)

Is there some way to get the colors back?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported Node.js stack traces with and without source-map-support, using the screenshots as the expected comparison. Trace where source-map-support formats mapped TypeScript stack frames and where terminal colors are lost; done means mapped traces retain the intended colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.