Skip to content

async injection #36

@stefanovualto

Description

@stefanovualto

Can create an example for the async case?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions