-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Missing queryString for inline entries like data:text/javascript,console.log("demo") #12214
Comments
Yes, that's inconsistent between behavior and typings. I would like to keep it
So I'll update the typings and beg |
I am happy with both ways :) And @sodatea said he is okay with providing a fix on the vue-loader side vuejs/vue-loader#1771 (comment) 👍 Thanks for adjusting the types - should I close this one? |
@sokra I got directly the next bug report for the very same topic: jantimon/html-webpack-plugin#1527 (comment) I guess most plugin/loader developer don't know about Maybe it is good enough to update the typings and wait for all plugins to add support for inline scripts - but I guess it is really hard for users to understand why this error is happening as the error stack is quite had to read: Click to expand error stack
Maybe we could at least wrap it with |
ok I reviewed the behavior again and noticed that when a property doesn't exist at all the matcher is called with |
Bug report
What is the current behavior?
According to the typings query will always be a string
webpack/declarations/WebpackOptions.d.ts
Line 243 in 10ad4e9
However as you see with the minimal reproduction example it is
undefined
fordata:text/javascript,console.log("demo")
Would it be possible to provide an empty string in those cases?
Other relevant information:
webpack version: 5.10.3
Connected issues: vuejs/vue-loader#1771 & jantimon/html-webpack-plugin#1527
The text was updated successfully, but these errors were encountered: