-
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 entry point] add gjs + gts extension for resolvable extensions #1679
Conversation
add gjs+gts as resolveable extensions for vite entry point asset file
Hi, I need more detail to understand what you're trying to do here.
|
It's possible to have gts/gjs files for templates with ember-route-templates. |
Sure but the gjs plugin you've also been working on already resolve gjs/gts. I still don't understand why it would be needed here in compat-app-builder too. |
Because of this:
Which is responsible to build the entry point.. Which would miss route.gts for example |
That line is building vendor.js, which should not have support for gts files. I think you probably mean this one instead:
which would influence the set of stuff that gets pushed into the app entrypoint. But yeah, I see what you mean. I'm really not ready to merge this PR unless all of this:
is also something you're ready to land as stable, and I'm skeptical that that will be easy. We have been steadily working to eliminate a mandatory rewritten-app dir, but we know there are still a bunch of features that are depend on it. Without that, this feature doesn't actually do anything, since as you say the gts/gjs handling happens in the earlier stage. |
Yes, what I've been working on is that vite loads app files from app root directory |
i think this also makes sense without having vite load everything from root. |
It's not OK to sometimes load from root and sometimes from the rewritten app, and so long as the files exist in the rewritten app they are resolvable. If you have both, vite will duplicate them. We are quite close to eliminating rewritten app entirely. |
Right, what i meant in my last statement is that embroider could just copy the gts/gjs files to the rewritten-app and have vite resolve them. It's good to hear that rewritten-app is soon gone. |
Wip here: #1695 |
reopen to separte out of big vite pr |
moved to #1718 |
add gjs+gts as resolveable extensions for vite entry point asset file