algolia / algolia/algoliasearch-client-javascript
algoliasearch-client-javascript provide cjs, es, but does not support deduping
- Lingua principale
- TypeScript
- Stelle
- 1.4k
- Fork
- 227
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello,
We had a memory leak while building our application, and we were able to solve it by increasing the memory for node, but while investigating, we noticed this anomaly:

It seems the UMD module gets builded with webpack, while I can see that you are distributing ES and CJS format.
In your documentation [here](https://www.algolia.com/doc/api-client/getting-started/install/javascript/?client=javascript#install-via-npm-recommended) it is written:
> Both versions come as UMD and ESM modules.
Inspecting at your package.json, it seems you are not defining the `module`, is it possible to release a version that fix the module as we rather not ship all of algoliasearch to our web clients.
Thanks in advance !
## related issues
- https://github.com/bvaughn/react-error-boundary/issues/114
## fix
We manage to fix it with webpack resolve.alias
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Iniziate esaminando package.json e i dettagli documentati dell’installazione di JavaScript, quindi confrontate le voci pubblicate ESM, CommonJS e UMD. Verificate che i bundler possano selezionare il modulo previsto senza includere codice client duplicato e confermate che il bundle del browser risultante risolva il problema segnalato di memoria e deduplicazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, typescript, webpack
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100