KC's Workspace
    Preparing search index...
    interface ModuleOptions {
        description?: string;
        invalidate?: boolean;
        meta: CustomPluginOptions;
        moduleSideEffects: ModuleSideEffects;
        packageJsonPath?: string;
    }

    Hierarchy (View Summary)

    Index
    description?: string

    A short, human-readable description of the module.

    This is useful for virtual modules, whose ids (e.g. \0vite/modulepreload-polyfill.js) do not convey their purpose on their own.

    function polyfillPlugin() {
    return {
    name: 'vite:modulepreload-polyfill',
    load: {
    filter: { id: /^\0vite/modulepreload-polyfill\.js$/ },
    handler(id) {
    return {
    code: '',
    description: 'A polyfill for `link` tag with `rel="modulepreload"`',
    };
    }
    },
    };
    }
    invalidate?: boolean
    meta: CustomPluginOptions

    See Custom module meta-data section for more details.

    moduleSideEffects: ModuleSideEffects
    packageJsonPath?: string