-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support .hbs
extensions for entry files
#39
Comments
I've been looking into this, and I don't think it's possible. Rollup doesn't seem to support changing the I can successfully get the |
I now run in this problem :D. Of course I can fix it with changeing hbs from html but as you already said, it would be cool. Beside that, I didn't believe that this is possible, I googled just short and I found this: https://github.com/yohangz/rollup-plugin-hbs Could this be a solution? |
Unfortunately, I don't think it is. That plugin defines a I took a stab at implementing one to see if that would do the trick last week, but unfortunately it did not because I can't change the It could be an issue worth raising on the Vite repo to see if we could somehow find a solution to this, though! |
Maybe there could be a ticket created for hbs. I dunno whether there is a ticket yet. I googled a couple of days ago and all what I found was the rollup hbs plugin. @jdf221 thx for investigating :). |
I saw the discussion in the vite repo. Is there anything new here? Do you think, your code is ready for a PR @jdf221 ? |
As far as I can tell, Vite makes a hard assumption that the file it starts to resolve linked files from is an HTML file. There is code I've seen internally that validates that the extension is
.html
.It would be nice if we could use
.hbs
for these files, if we're going to have Handlebars syntax in them, just for the purposes of syntax highlighting and the like.I'm not sure what allowing non-
html
files at the "top level" would look like, but it would be really nice to support!The text was updated successfully, but these errors were encountered: