unplugin / unplugin-turbo-console

🚀 Improve the Developer Experience of console
https://utc.yuy1n.io
MIT License
508 stars 11 forks source link

fix: correct silent type #47

Closed jspn-creative closed 1 week ago

jspn-creative commented 1 week ago

Description

The 'silent' configuration type and documentation was flipped — specifying silent:false as a config option has no effect as the default value actually is false. silent:true works as intended, but produces a type error.

Linked Issues

N/a

Additional context

N/a

stackblitz[bot] commented 1 week ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

pnpm add https://pkg.pr.new/unplugin/unplugin-turbo-console@47

commit: 1c7548e

yuyinws commented 1 week ago

Thanks for your contribution.

The silent type should be boolean instead of a fixed value.

If you want to avoid the plugin's terminal output, set silent to true:

import TurboConsole from 'unplugin-turbo-console/vite'

export default defineConfig({
    TurboConsole({
        silent: true
    })
})