-
Notifications
You must be signed in to change notification settings - Fork 400
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(cli): user-friendly console output of chunk information #727
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
@@ -14,13 +19,133 @@ export async function bundle(configExport: RolldownConfigExport) { | |||
} | |||
|
|||
async function bundleInner(options: RolldownOptions) { | |||
const start = performance.now() | |||
const dir = options.output?.dir ?? 'dist' |
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 default for dir
is held by the Rust side.
dir: raw_output.dir.unwrap_or_else(|| "dist".to_string()), |
I think we need a mechanism to share dir
defaults between JS side and Rust side.
If we change this value on either side, it may not work.
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.
For non-gziped size, you should able to get them in the returned value of write
or generate
. However, this might still slow down the performance potentially if we didn't do the optimization in #696.
I suggest we now only print non-gized sizes. It should solves
- the performance problem of large project
- not knowing
default for dir
problem
I have dropped the display gzip size feature. |
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.
Thanks!
6d2ae85
to
400ca6c
Compare
Description
The rolldown CLI only outputs the following exit message and time when a build is executed with the command.
This PR user-friendly output to console like vite.
Test Plan