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
You can either return the raw content to load, or a Promise which resolves to the content, if you wish to be async.
Because from my understanding the loader needs always to return a string and not a Promise.
My use case is that I would like to inject a third party library that has no npm package but available through a cdn and which is required by my library. I have at the moment a homemade plugin, which injects the text inside the bundle, but I would like to find a cleaner alternative...
Thank you in advance
The text was updated successfully, but these errors were encountered:
Can create an example for the async case?
Because from my understanding the loader needs always to return a string and not a Promise.
My use case is that I would like to inject a third party library that has no npm package but available through a cdn and which is required by my library. I have at the moment a homemade plugin, which injects the text inside the bundle, but I would like to find a cleaner alternative...
Thank you in advance
The text was updated successfully, but these errors were encountered: