-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
fix(html): empty script #6057
fix(html): empty script #6057
Conversation
I don't know if this is the right fix, we should check why there isn't a string for that cached proxy. If an empty string is inserted in the cache (instead of undefined as I assume it is now), then we don't need to throw an error |
@patak-dev thanks comment.
so we need to find why isn't a string for that cached proxy case to fix? avoid using |
I think the problem needs to be here vite/packages/vite/src/node/plugins/html.ts Line 231 in d4c5cff
|
I think script children must be a |
You are right, the initial implementation was fine. Sorry for the noise, reverted it for you. Let's merge 👍🏼 |
Description
fix: #6008
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).