We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
showUsage
runMain
npm -v 9.3.0 node -v v18.19.1
https://github.com/kazupon/citty-repro1
# install npm install # build npm run build > [email protected] build > unbuild ℹ Building citty-repro1 ℹ Cleaning dist directory: ./dist ✔ Build succeeded for citty-repro1 dist/cli.cjs (total size: 29.3 kB, chunk size: 29.3 kB, exports: showUsage) 📦 node_modules/citty/dist/index.mjs (14 kB) 📦 node_modules/consola/dist/core.mjs (9.79 kB) 📦 node_modules/consola/dist/utils.mjs (2.79 kB) 📦 node_modules/consola/dist/browser.mjs (1.75 kB) dist/cli.mjs (total size: 28.9 kB, chunk size: 28.9 kB, exports: showUsage) 📦 node_modules/citty/dist/index.mjs (14 kB) 📦 node_modules/consola/dist/core.mjs (9.79 kB) 📦 node_modules/consola/dist/utils.mjs (2.75 kB) 📦 node_modules/consola/dist/browser.mjs (1.75 kB) Σ Total dist size (byte size): 58.2 kB # grep built-in `showUsage` cat dist/cli.mjs | grep showUsage\$1 async function showUsage$1(cmd, parent) { const showUsage$1$1 = opts.showUsage || showUsage$1; await showUsage$1$1(...await resolveSubCommand(cmd, rawArgs)); await showUsage$1$1(...await resolveSubCommand(cmd, rawArgs));
Built-in showUsage and renderUsage are not tree-shaking, when put custom showUsage at runMain.
renderUsage
rolldown/rolldown#754 (review)
As additional information, my use-case that citty is bundled with unbuild.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Reproduction
repo
https://github.com/kazupon/citty-repro1
step to reproduction
Describe the bug
Built-in
showUsage
andrenderUsage
are not tree-shaking, when put customshowUsage
atrunMain
.Additional context
related issue (comment)
rolldown/rolldown#754 (review)
As additional information, my use-case that citty is bundled with unbuild.
Logs
No response
The text was updated successfully, but these errors were encountered: