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

Adding sideEffects: false to package.json

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript
領域
build-system

調査の方向性

まず package.json とリンクされている以前の issue #136 を確認し、パッケージの既存の bundling コンテキストを把握します。パッケージのモジュールを副作用なしとして安全に指定できることを確認し、続いてパッケージメタデータに要求された flag が含まれていること、および関連する tree-shaking の動作が対処されていることを確認します。

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

説明

Is there an existing issue for this?
  • I have searched the existing issues
Code of Conduct
  • I agree to follow this project's Code of Conduct
Feature Request

A while back, I asked to add "sideEffects": false to this package's package.json file, to enable better tree shaking: https://github.com/FormidableLabs/react-fast-compare/issues/136

Anyway, I've found another reason that it might make sense to add this flag, which is that without it, if this module is imported but unused, its code still gets bundled.

See my comment at https://github.com/eugenezinovyev/react-fontawesome-svg-icon/issues/36#issuecomment-3663844017 for a more detailed explanation.

I'd reopen https://github.com/FormidableLabs/react-fast-compare/issues/136, but it says I don't have permissions XD

Thanks :)

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

環境構築

はじめの一歩

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

FormidableLabs/react-fast-compare のほかの issue

FormidableLabs/react-fast-compare の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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