Skip to content

fix: fix early logger definiton in resolveConfig#2425

Merged
yyx990803 merged 1 commit intovitejs:mainfrom
stingalleman:main
Mar 15, 2021
Merged

fix: fix early logger definiton in resolveConfig#2425
yyx990803 merged 1 commit intovitejs:mainfrom
stingalleman:main

Conversation

@stingalleman
Copy link
Contributor

@stingalleman stingalleman commented Mar 8, 2021

The config was defined too early in resolveConfig. config.logLevel and config.clearScreen both aren't defined yet, so these options do not work.

@stingalleman
Copy link
Contributor Author

Hey @antfu, could this be merged (and pushed to npm)? I really need this fixed 😄

@patak-cat
Copy link
Member

Hey @stingalleman, until Vite is released with these changes, you could use a tool like https://www.npmjs.com/package/patch-package to patch the current version locally and be able to share it with others.

@stingalleman
Copy link
Contributor Author

Hey @stingalleman, until Vite is released with these changes, you could use a tool like https://www.npmjs.com/package/patch-package to patch the current version locally and be able to share it with others.

I didn't know tools like these existed. Definitely going to use that. Thank you!

@yyx990803 yyx990803 merged commit 96ea9f4 into vitejs:main Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants