browserify / browserify/factor-bundle

Seems to have problems with npm linked dependencies

Aperta
#66 3 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

If I have in my my code say `require("immutable")` and in an `npm link`ed module elsewhere on my system the same require code it gets treated as two different libraries when factored and doesn't end up in the common bundle.

It's odd, and it works fine when not using `npm link`. I can only assume it's something to do with the paths of those files being quite different (ie, when linked it's not in the normal dep tree of the core code).

Frustrating though, especially when dealing with applications that are developed locally with private modules as abstracted parts of the core app. It very much bloats the code.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the require("immutable") case with an npm-linked module and compare it with the non-linked dependency tree. Trace how factor-bundle identifies shared modules when their paths differ; done means the linked and local copies are recognized as one dependency and placed in the common bundle.

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

Valutazione

Stack tecnologico
javascript
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
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.