Swiffy runtime causes issues with Vue's internals #9737
-
Hello. The warnings look like this: We include swiffy with a simple component that loads the js script, like so:
Swiffy has to be loaded before the html, so in the page we set a ref to true when :onload resolves, which we use as a condition for rendering the html. Swiffy runtime can be seen here: https://www.gstatic.com/swiffy/v7.4.1/runtime.js Does anyone have an idea what I can look for? Is this even a real problem? The app seems to work, but does get slow with time (likely due to massive console.log spam), but as far as I can see from the Vue runtime-core, these warnings don't get logged in NODE_ENV=production. Any pointers/advice is much appreciated 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I poked around a bit in the minified source of swiffy. It seems that it overrrides the What does this mean for you?
We will not adjust Vue's code to accommodate for whatever swiffy breaks here. |
Beta Was this translation helpful? Give feedback.
I poked around a bit in the minified source of swiffy. It seems that it overrrides the
toString()
method of all global constructors likeString.prototype.toString
, and I assume this method now returns something that breaks ourgetType
implementation here:core/packages/runtime-core/src/componentProps.ts
Line 600 in 9ea2b86
What does this mean for you?