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 rsc on windows #30364

Merged
merged 1 commit into from
Oct 26, 2021
Merged

fix rsc on windows #30364

merged 1 commit into from
Oct 26, 2021

Conversation

sokra
Copy link
Member

@sokra sokra commented Oct 26, 2021

No description provided.

ijjk
ijjk previously approved these changes Oct 26, 2021
styfle
styfle previously approved these changes Oct 26, 2021
huozhi
huozhi previously approved these changes Oct 26, 2021
Copy link
Member

@huozhi huozhi left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines 106 to 108
let modId: string

const context = compiler.context
const nameForCondition = mod.nameForCondition()

if (nameForCondition && nameForCondition.startsWith(context)) {
modId = '.' + nameForCondition.slice(context.length)
} else {
modId = compilation.chunkGraph.getModuleId(mod)
}
modId = compilation.chunkGraph.getModuleId(mod)
Copy link
Member

Choose a reason for hiding this comment

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

You can do let modId = and remove line 106 😎

@sokra sokra dismissed stale reviews from huozhi, styfle, and ijjk via 0ddd0ee October 26, 2021 20:22
@huozhi huozhi merged commit 3d035ce into canary Oct 26, 2021
@huozhi huozhi deleted the bugfix/rsc-windows branch October 26, 2021 20:24
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants