browserify / browserify/factor-bundle

Broken build when requiring moment-timezone and moment

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

説明

`factor-bundle` creates broken bundles when required modules have linked dependencies. This happens for example when installing `moment-timezone` and afterwards `moment`. So `moment` exists two times in the `node_modules` folder, once for `moment-timezone` and once in `moment`. This seems to break browserify. When installing the modules the other way around the bundle does not break (this time there is only one `moment`).

I don't know if this is more of a problem with the way npm install modules when they have duplicate dependencies or if this is a problem with factor bundle.

I set up a test case over at: https://github.com/davidlanger/factor-bundle-moment-timezone

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

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

調査の方向性

https://github.com/davidlanger/factor-bundle-moment-timezone の再現手順から始め、moment より前に moment-timezone をインストールしてから、得られた bundle をインストール順序を逆にした場合の bundle と比較します。moment の重複した依存関係によって factor-bundle またはパッケージレイアウトが壊れるかを追跡し、再現手順で一貫して動作する bundle が生成されれば、この issue は完了とします。

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

評価

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

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

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