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

docs: update README.md, fix example code. #22

Merged
merged 2 commits into from
Feb 3, 2023
Merged

docs: update README.md, fix example code. #22

merged 2 commits into from
Feb 3, 2023

Conversation

laoer536
Copy link
Contributor

@laoer536 laoer536 commented Feb 2, 2023

Description

Linked Issues

Additional context

@antfu
Copy link
Member

antfu commented Feb 2, 2023

What has been fixed? Can you explain a bit?

@@ -53,8 +53,8 @@ const { config, sources } = await loadConfig({
{
files: 'vite.config',
async rewrite(config) {
const config = await (typeof config === 'function' ? config() : config)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rewrite function has a 'config' parameter, but the next line use 'const' declare again.

@laoer536
Copy link
Contributor Author

laoer536 commented Feb 2, 2023

What has been fixed? Can you explain a bit?

The 'rewrite' function has a 'config' parameter, but the next line use 'const' declare again.

README.md Outdated Show resolved Hide resolved
@antfu antfu changed the title Update README.md, fix example code. docs: update README.md, fix example code. Feb 3, 2023
@antfu antfu merged commit fd0baca into antfu-collective:main Feb 3, 2023
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