KC's Workspace
    Preparing search index...
    interface BrowserScript {
        async?: boolean;
        content?: string;
        id?: string;
        src?: string;
        type?: string;
    }
    Index

    Properties

    async?: boolean

    If the script should be loaded asynchronously.

    content?: string

    JavaScript content to be injected. This string is processed by Vite plugins if type is "module".

    You can use id to give Vite a hint about the file extension.

    id?: string

    If "content" is provided and type is "module", this will be its identifier.

    If you are using TypeScript, you can add .ts extension here for example.

    injected-${index}.js

    src?: string

    Path to the script. This value is resolved by Vite so it can be a node module or a file path.

    type?: string

    Script type.

    'module'