browserify / browserify/factor-bundle
Broken build when requiring moment-timezone and moment
- Langage dominant
- JavaScript
- Étoiles
- 397
- Forks
- 24
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
`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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par la reproduction sur https://github.com/davidlanger/factor-bundle-moment-timezone et installez moment-timezone avant moment, puis comparez le bundle obtenu avec celui de l’ordre d’installation inverse. Vérifiez si la dépendance dupliquée de moment casse factor-bundle ou la structure du package, et considérez le problème comme terminé lorsque la reproduction produit systématiquement un bundle fonctionnel.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, nodejs
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100