googleapis / googleapis/google-api-nodejs-client

Too slow tsc compilation time with importing just googleapis

オープン
#3,296 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る
priority: p2 type: bug
主要言語
TypeScript
スター
12.2k
フォーク
2k
平均マージ
1日 9時間
マージ済み PR(30日)
24

説明

It takes 10 second to compile with `tsc` just with importing `googleapis`

- macOS 10.15.7
- Node v18.16.1
- npm 9.8.0
- googleapis: "^118.0.0"

googleapis-import

tsconfig.json

```json
{
"compilerOptions": {
"strict": true,
"module": "ESNext",
"target": "ESNext",
"esModuleInterop": true,
"moduleResolution": "NodeNext",
"skipLibCheck": true,
"noEmit": true,
"allowJs": true
},
"exclude": [
"node_modules"
]
}
```

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

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

調査の方向性

import、tsconfig.json、および記載されている TypeScript と Node のバージョンを使用して報告を再現し、googleapis を import した場合と存在しない場合の tsc の時間を測定します。関係するコンパイラー入力を追跡し、原因と、コンパイル時間の検証済みの改善または文書化された制限が確立された時点で issue の対応完了とします。

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

評価

技術スタック
nodejs, typescript
領域
build-system, performance
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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