Trying to make an injection plugin but it reloads #12695
Unanswered
tripdragon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This might be a vite question but it has some ssr or rehydration issue I think.
In a
.svelte component file
I would like to inject at build in dev an external file with a chunk of codewhere anyline begins with
#external
It simply dumps the code into place. Not as an
@import
or such, just a direct anywhere, any place grep the code at build and replace with file.No reason, just a temp debugging tool for me to sort large files or focus on one area without losing scroll space.
Anyhoo
After asking openai multiple ways I debugged it down to this
It works on first reload of page for a flash and then reverts to not working and leaving the string in the page rendered code on the page
Open ai at first computes together a whileloop, but it does not seem to trigger or one of them did not, but reguardless same not working fully issue
Beta Was this translation helpful? Give feedback.
All reactions