evanw / evanw/node-source-map-support

Color support?

未关闭
#263 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
2.2k
派生
223
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先,在有和没有 source-map-support 的情况下复现报告的 Node.js 堆栈跟踪,并以屏幕截图作为预期对比。追踪 source-map-support 在哪里格式化映射后的 TypeScript 堆栈帧,以及终端颜色在哪里丢失;完成的标准是映射后的跟踪仍保留预期的颜色。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
devtools
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。