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: defaultRequestToFile should consider optimized modules #239

Merged

Conversation

csr632
Copy link
Member

@csr632 csr632 commented May 23, 2020

I forgot to consider optimized modules in this pr: #230
which leads to a issue when rewriting cross import between optimized modules.
Here is a reproduction:
https://github.com/csr632/test-vite/tree/rewrite-extension-issue
You can also cherry-pick the second commit onto current master branch to see the issue.

@csr632
Copy link
Member Author

csr632 commented May 23, 2020

I reproduce this issue in playground and add test in the second commit.
The playground is working but a lot of tests is broken. Why is this happening? @yyx990803

@csr632 csr632 force-pushed the fix/defaultRequestToFile-optimized-module branch from 254bf0f to 3b033ec Compare May 23, 2020 11:20
@yyx990803
Copy link
Member

We need to run yarn in the playground directory before running the tests now because of the linked module.

@yyx990803
Copy link
Member

I'm fixing this.

@yyx990803 yyx990803 merged commit b5ddcdc into vitejs:master May 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.

2 participants