developit / developit/workerize-loader

Duplicate worker code inside bundle file with inline option

Aberta
#129 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
2.3k
Forks
85
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi!

When using inline option in the config, I found duplicate worker code in my bundle.
Perhaps this is because of incorrect use of `createObjectURL` and `revokeObjectURL` in the case of `inline: true` option.
I believe in line 186 👇, the argument of `URL.revokeObjectURL` should not be a string with all the worker code inside it, but it should be a product of `URL.createObjectURL` method.

https://github.com/developit/workerize-loader/blob/99d98e4f14e83cff28b9269660964d5424d865bb/src/index.js#L186

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.