developit / developit/workerize-loader

Breaks on latest gatsby, only when there is a webpack cache

Ouverte
#131 6 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
2.3k
Forks
85
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

It seems like after I start the Gatsby dev server a second time — and webpack has a cache — the worker doesn't load with the exported worker functions set on the object. The moment I clear webpack's cache and restart the dev server, the worker loads fine again.

Does this very limited description by any chance give you a quick insight about what might be causing this?

I'm afraid I can't really give more details, because the inner workings of gatsby/webpack is just one big black box to me.

I can of course make a minimal reproduction with a newly bootstrapped gatsby, if this would be of any help?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Créez la reproduction minimale avec un projet Gatsby nouvellement initialisé, puis démarrez deux fois le serveur de développement Gatsby avec la mise en cache de webpack activée. Comparez le chargement du worker et les fonctions exportées du worker avant et après l’effacement du cache de webpack ; c’est terminé lorsque le worker se charge avec ses fonctions exportées lors du redémarrage avec le cache.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, webpack
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.