Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Why is webpack processing the `.tsbuildinfo` files?

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

まず yarn build を実行し、出力された .tsbuildinfo アセットについて webpack のビルド出力を確認します。どのビルド設定がこれらの TypeScript キャッシュファイルを含めているのかを追跡します。キャッシュファイルが webpack アセットとして処理されなくなるか、なぜ出力されるのか、また警告が想定されたものかどうかを issue で明確に説明できれば完了です。

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

説明

~/C/ember-debug ❯❯❯ yarn build
yarn run v1.22.4
$ yarn build:webpack
$ webpack -p
Hash: 760f366086dcd1d35a3b
Version: webpack 4.43.0
Time: 6079ms
Built at: 11/02/2020 6:58:53 PM
                                             Asset       Size  Chunks                    Chunk Names
    ../packages/ember-debug-global/dist/index.d.ts   46 bytes          [emitted]
../packages/ember-debug-global/dist/index.d.ts.map  104 bytes          [emitted]
      ../packages/ember-debug-global/dist/index.js  908 bytes          [emitted]
  ../packages/ember-debug-global/dist/index.js.map  864 bytes          [emitted]
   ../packages/ember-debug-global/tmp/.tsbuildinfo    292 KiB          [emitted]  [big]
           ../packages/ember-debug/dist/index.d.ts  323 bytes          [emitted]
       ../packages/ember-debug/dist/index.d.ts.map  371 bytes          [emitted]
             ../packages/ember-debug/dist/index.js  417 bytes          [emitted]
         ../packages/ember-debug/dist/index.js.map  505 bytes          [emitted]
          ../packages/ember-debug/tmp/.tsbuildinfo    291 KiB          [emitted]  [big]
                                    bookmarklet.js   12.2 KiB       0  [emitted]         main
                                        index.html   1.02 KiB          [emitted]
Entrypoint main = bookmarklet.js
[2] ./bookmarklet.ts 72 bytes {0} [built]
[3] ./packages/ember-debug-global/dist/index.js + 1 modules 1.59 KiB {0} [built]
    | ./packages/ember-debug-global/dist/index.js 775 bytes [built]
    | ./packages/ember-debug/dist/index.js 847 bytes [built]
    + 2 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  ../packages/ember-debug/tmp/.tsbuildinfo (291 KiB)
  ../packages/ember-debug-global/tmp/.tsbuildinfo (292 KiB)

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Child HtmlWebpackCompiler:
     1 asset
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./index.html 1.38 KiB {0} [built]
✨  Done in 8.00s.

Not sure if this has always been the case or it was something we did "recently". Webpack is complaining that some of the "asset" files are too big, and it turns out it was talking about the .tsbuildinfo files. These are basically internal caches used by TypeScript, and I'm not sure why Webpack would need to process them at all. I think something is probably misconfigured somewhere, or maybe the warning is just wrong/superfluous... needs investigation.

主要言語
JavaScript
スター
5
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

emberjs/ember-debug のほかの issue

emberjs/ember-debug の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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