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
fix(core): enable details for analyzer #3021
Conversation
✅ Deploy Preview for unocss ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I don't actually mind turning |
But in this case user will be able to break the Analyzer by setting "details: false" in config. |
packages/core/src/config.ts
Outdated
@@ -157,6 +158,7 @@ export function resolveConfig<Theme extends object = object>( | |||
extractors, | |||
safelist: getMerged('safelist'), | |||
separators, | |||
details: config.details ?? process.env.NODE_ENV === 'development', |
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.
The core is env agnostic, we shouldn't rely on process. Might be better to rely on envMode and move this logics to the vite/webpack plugin
@antfu 3rd attempt :) |
#2682
Currently Analyzer shows incorrect info, because
config.details
is disabled by default.