Interface ITransformPlugin

interface ITransformPlugin {
    config?: IAssets & {
        preloadScripts?: JSItem[];
        resources?: string[];
        versions?: Record<string, string>;
    };
    name: string;
    transform: (transformHooks: ITransformHooks) => IAssets;
}

Properties

config?: IAssets & {
    preloadScripts?: JSItem[];
    resources?: string[];
    versions?: Record<string, string>;
}

Type declaration

  • OptionalpreloadScripts?: JSItem[]

    For browsers only. Scripts that needs to be preloaded for the transformer to work.

  • Optionalresources?: string[]

    Additional resources needed for the plugin to work offline.

  • Optionalversions?: Record<string, string>
name: string
transform: (transformHooks: ITransformHooks) => IAssets

Type declaration