browserify / browserify/factor-bundle

Broken build when requiring moment-timezone and moment

Aperta
#77 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
397
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con la riproduzione su https://github.com/davidlanger/factor-bundle-moment-timezone e installa moment-timezone prima di moment, quindi confronta il bundle risultante con quello ottenuto dall’ordine di installazione inverso. Verifica se la dipendenza duplicata di moment rompe factor-bundle o la struttura del package, e considera concluso il problema quando la riproduzione produce costantemente un bundle funzionante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, nodejs
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.