You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @docsearch/react compiles each of its files in isolation for the ESM output, the module as a whole ends up with a dozen duplicated helpers even in the most simple demonstration.
Edit: This applies for all dependencies of @docsearch/react too.
This heavily bloats the bundles of applications which use it, and bloats them needlessly.
Steps to reproduce
Start a Vite (though every bundler would be impacted similarly) React project, pasting the following into src/main.jsx:
See 10 copies of the iterator helper ("Invalid attempt to destructure non-iterable instance....")
Expected behavior
That there aren't heavily duplicated helpers throughout the bundles.
This likely means moving to better build tooling, as compiling each module in isolation isn't really viable, nor has it ever been. The asset quality takes a pretty big hit when doing so.
Environment
OS: N/A
Browser: N/A
DocSearch version: 3.6.0
The text was updated successfully, but these errors were encountered:
Description
As
@docsearch/react
compiles each of its files in isolation for the ESM output, the module as a whole ends up with a dozen duplicated helpers even in the most simple demonstration.Edit: This applies for all dependencies of
@docsearch/react
too.This heavily bloats the bundles of applications which use it, and bloats them needlessly.
Steps to reproduce
src/main.jsx
:npm run build
"Invalid attempt to destructure non-iterable instance...."
)Expected behavior
That there aren't heavily duplicated helpers throughout the bundles.
This likely means moving to better build tooling, as compiling each module in isolation isn't really viable, nor has it ever been. The asset quality takes a pretty big hit when doing so.
Environment
The text was updated successfully, but these errors were encountered: