Skip to content
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: 🚀 增加前后缀选项 #1

Closed
wants to merge 4 commits into from

Conversation

17359898647
Copy link
Contributor

No description provided.

@17359898647
Copy link
Contributor Author

image

src/index.ts Outdated
Comment on lines 13 to 16
const defaultOptions: TurboConsoleOptions = {
prefix: '🚀🚀🚀🚀🚀',
suffix: '🚀🚀🚀🚀🚀',
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不必要的代码

src/index.ts Outdated
const _suffix = suffix ? `\\n ${suffix}` : ''
const appendLeft = `"${_prefix} %c${fileName}:${originalLine} ~ ${argsName}","${getConsoleStyle(fileType)}",`
magicString.appendLeft(argumentStart, appendLeft).appendRight(argumentEnd, `,"${_suffix}"`)
// appendRight
Copy link
Member

@yuyinws yuyinws Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

65行 不必要的注释

@17359898647 17359898647 closed this Sep 5, 2023
@17359898647 17359898647 deleted the prefix branch September 5, 2023 09:13
@17359898647 17359898647 restored the prefix branch September 5, 2023 09:13
@17359898647 17359898647 deleted the prefix branch September 5, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants