You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2024. It is now read-only.
Would it be possible to get the constructor to take a inline sourced string as input, instead of requiring a URL? (maybe with a base path for any images or whatever the template might refer to)
Alternatively I tried passing the source as a data-uri string, but then I get an error: httpVueLoader.js:453 GET data:text/plain;base64,xxxxxxxxx/index.vue net::ERR_INVALID_URL (apparently it tries to append /index.vue)
The text was updated successfully, but these errors were encountered:
(I also tried writing a custom httpVueLoader.httpRequest to intercept data: urls and just return a Promise with the decoded body, but then I run into another issue: 'data' URLs may not be used as base URLs for a document. )
@sp00x There is a function that parses and decomposes the url called parseComponentURL. That's where /index.vue is appended. maybe you can modify it to handle data-uris as well as blob urls.
Would it be possible to get the constructor to take a inline sourced string as input, instead of requiring a URL? (maybe with a base path for any images or whatever the template might refer to)
Alternatively I tried passing the source as a data-uri string, but then I get an error:
httpVueLoader.js:453 GET data:text/plain;base64,xxxxxxxxx/index.vue net::ERR_INVALID_URL
(apparently it tries to append/index.vue
)The text was updated successfully, but these errors were encountered: