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

fix: resolver.ts fixes + code cleanup + matching practices #947

Merged
merged 7 commits into from
Oct 23, 2020

Conversation

sno2
Copy link
Contributor

@sno2 sno2 commented Oct 23, 2020

Also, are we not explicitly stating types? I've seen many forEach and for...of loops without type defs. Another question: are we supposed to use for...of or forEach?

for (const r of resolvers) {
aliased =
r.alias && typeof r.alias === 'function' ? r.alias(id) : undefined
for (const { alias } of resolvers) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refer to comment #1

@yyx990803
Copy link
Member

Is this a purely stylistic PR? If so, do not label it as fix: - use style: instead.

@sno2
Copy link
Contributor Author

sno2 commented Oct 23, 2020

Is this a purely stylistic PR? If so, do not label it as fix: - use style: instead.

Sorry, I will remember that.

@yyx990803 yyx990803 merged commit 802aa7e into vitejs:master Oct 23, 2020
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.

None yet

2 participants