-
Notifications
You must be signed in to change notification settings - Fork 160
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
feat!: output inspect config to .rsbuild dir #3189
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
let { cleanDistPath } = config.output; | ||
|
||
if (cleanDistPath === undefined) { | ||
cleanDistPath = isStrictSubdir(rootPath, cleanPath); |
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.
We can avoid calling isStrictSubdir
multiple times
} | ||
|
||
if (cleanDistPath) { | ||
await emptyDir(cleanPath); |
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.
emptyDir
is slow, can we find a method to avoid calling it multiple times?
Summary
output inspect config to
.rsbuild
directory by default, and we will output more rsbuild related files to the.rsbuild
directory.Related Links
Checklist