[vite entry point] add gjs + gts extension for resolvable extensions#1679
[vite entry point] add gjs + gts extension for resolvable extensions#1679patricklx wants to merge 1 commit intoembroider-build:mainfrom
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