Closed lisonge closed 2 years ago
I don't understand the purpose of this. Can you explain further? Is this something already supported by user script managers like Tampermonkey?
Tampermonkey/Violentmonkey support // @require data:application/javascript,%3Bwindow.Vue%3DVue%3B
can not work
can work
but // @require data:application/javascript,%3Bwindow.Vue%3DVue%3B
is not allowed at greasyfork
Do you understand what I mean ?
@JasonBarnabe hello, Could you please give me an accurate reply?
data URI @require
s are now allowed.
ok, thanks
because
vue
use iife export,element-plus
use umd, they can not both work in Tampermonkey/Violentmonkey window scopefull detail see vite-plugin-monkey#5
The simplest solution is that add a
@require url
to set window.Vue to scope.Vue aftervue require url