KC's Workspace
    Preparing search index...
    interface Alias {
        customResolver?:
            | (
                (
                    this: PluginContext,
                    source: string,
                    importer: string | undefined,
                    extraOptions: {
                        custom?: CustomPluginOptions;
                        isEntry: boolean;
                        kind:
                            | "import-statement"
                            | "dynamic-import"
                            | "require-call"
                            | "import-rule"
                            | "url-token"
                            | "new-url"
                            | "hot-accept";
                    },
                ) => undefined
                | null
                | string
                | false
                | void
                | PartialResolvedId
            )
            | ResolverObject
            | null;
        find: string | RegExp;
        replacement: string;
    }
    Index

    Properties

    customResolver?:
        | (
            (
                this: PluginContext,
                source: string,
                importer: string | undefined,
                extraOptions: {
                    custom?: CustomPluginOptions;
                    isEntry: boolean;
                    kind:
                        | "import-statement"
                        | "dynamic-import"
                        | "require-call"
                        | "import-rule"
                        | "url-token"
                        | "new-url"
                        | "hot-accept";
                },
            ) => undefined
            | null
            | string
            | false
            | void
            | PartialResolvedId
        )
        | ResolverObject
        | null

    Instructs the plugin to use an alternative resolving algorithm, rather than the Rollup's resolver.

    null
    

    Use a custom plugin with resolveId hook and enforce: 'pre' instead

    find: string | RegExp
    replacement: string