-
-
Notifications
You must be signed in to change notification settings - Fork 115
feat: log compile stats #503
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
Conversation
packages/vite-plugin-svelte/src/utils/vite-plugin-svelte-stats.ts
Outdated
Show resolved
Hide resolved
added an option to disable because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving the option to experimental
sounds fine to me 👍 I hope we can start reducing the options for v2 though so there's less to document and nicer ootb experience.
We want to set
prebundleSvelteLibraries: true
by default and this has implications for users.Esp. with large component libraries it can lead to significant delays when loading the dev page in the browser or building.
To make these transparent, we collect compile time statistics and log them.
example output for dev:
example output for build:
These stats are logged at the
info
level.You can disable them via the new
experimental.disableCompileStats
option for vite-plugin-svelte