-
Notifications
You must be signed in to change notification settings - Fork 142
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
vite also needs to resolve index.{gjs,gts} #1826
Conversation
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.
This will likely be fixed by #1794, or at the very least we should add a failing test somewhere after that is merged before we make any more changes like this 👍
@@ -1,2 +1,8 @@ | |||
<template>Yay for gts!</template> | |||
import WithIndex from './with-index'; |
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.
this is the import that would fail to resolve
195b2cb
to
954cd44
Compare
one test failed while fetching node... |
Idea here is that we should try switching at least the gjs/gts support to rely on vote's own resolve-extensions, so that it composes with vite's built-in index search. We may or may not be able to do that for hbs given that within app code the hbs support is more complex, given the existence of template-only components, etc. |
somehow after adding the extensions to resolve. |
the commit 5559000 makes esbuild resolver behave the same as vite, when we have a |
I think for virtual files we want to add a suffix instead of a prefix. It should then be able to generate correct imports that use the dep optimization |
2 issues:
|
I think this is going to need pairing at office hours to sort through. Changing from prefix to suffix seems like a workaround for what is actually breaking. |
bee7776
to
7c8c6c8
Compare
will be fixed by #2029 |
blocked by #1876