browserify / browserify/factor-bundle

Broken build when requiring moment-timezone and moment

Offen
#77 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
397
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

`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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginnen Sie mit der Reproduktion unter https://github.com/davidlanger/factor-bundle-moment-timezone und installieren Sie moment-timezone vor moment. Vergleichen Sie anschließend das resultierende Bundle mit dem Bundle aus der umgekehrten Installationsreihenfolge. Untersuchen Sie, ob die doppelte moment-Abhängigkeit factor-bundle oder das Paketlayout beschädigt, und betrachten Sie das Problem als erledigt, wenn die Reproduktion konsistent ein funktionierendes Bundle erzeugt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, nodejs
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.