-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use Vite's resolve to resolve paths for client:only #5434
Conversation
🦋 Changeset detectedLatest commit: 3ea4582 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@bluwy would love to get your opinion on this since you worked on this problem before. Any reason not to use Vite |
It doesn't use Vite resolve because it doesn't need to when compiling. We only need to make sure that path is import-able when the astro-island imports it. I'm not sure if this PR is the right move here. I think we might need to fix how vite-plugin-css links the styles up, maybe the missing extension is causing incorrect checks. |
@bluwy Yeah, you're right. I removed that and instead made it so that the analyzer always fully resolves via the specifier to keep track of these. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let Vite handle the resolve so we don't worry about extensions, makes sense!
Changes
resolve
method to resolve within the compiler.Testing
Docs
N/A, bug fix