Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separate guide for deps.optimizer #3524

Open
4 tasks done
sheremet-va opened this issue Jun 5, 2023 · 1 comment
Open
4 tasks done

Add separate guide for deps.optimizer #3524

sheremet-va opened this issue Jun 5, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation pr welcome

Comments

@sheremet-va
Copy link
Member

sheremet-va commented Jun 5, 2023

Clear and concise description of the problem

There is not a lot of information about the Vitest optimizer.

Suggested solution

We should add a guide in Vitest documentation explaining how the optimizer works and where to enable it. We can rely on "Dependency Pre-Bundling" Vite docs as a source of inspiration since it uses the same mechanism.

Vitest main points:

  • Importing a single file is faster than importing separate files
  • CJS/ESM interop should be better
  • We can use Vite plugins and aliases without processing files one by one which is faster
  • Better interoperability with how Vite works in the browser

Alternative

No response

Additional context

No response

Validations

@sheremet-va sheremet-va added documentation Improvements or additions to documentation pr welcome labels Jun 5, 2023
@dammy001
Copy link
Member

@sheremet-va I'll pick this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation pr welcome
Projects
None yet
Development

No branches or pull requests

2 participants