code-forge-io / code-forge-io/react-router-devtools

be able to disable colors for browser console.log

オープン
#169 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
972
フォーク
55
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi !

a little suggestion for firefox users...

Logs with colors improve readability and are therefore relevant when they appear in the server-side terminal. However, when this same code is executed on the browser side and the browser does not support colors (Firefox), the developer experience is degraded. Would it be possible to implement an option to disable colors for code written on the browser side?

[better-console-logs](https://github.com/forge42dev/react-router-devtools/blob/1b57656ec96f4fa9858242ece2a1088da3b87487/src/vite/plugin.tsx#L232)

react-router-devtools version: 1.0.5
firefox version: 133 (Linux)

![log](https://github.com/user-attachments/assets/4197a9fb-8026-46a9-b210-7a8850434093)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、src/vite/plugin.tsx の232行目付近にあるリンク先の better-console-logs 実装を確認し、Firefox 133 で色付きのブラウザーコンソール出力を再現します。ブラウザー側のロギングがどこで設定されているかを追跡し、オプションに期待される動作を定義します。サーバー側の色は引き続き利用可能で、ブラウザーの色は無効にできるようにします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
developer-experience, tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。