KC's Workspace
    Preparing search index...

    Type Alias ShouldTransformCachedModuleHook

    ShouldTransformCachedModuleHook: (
        this: PluginContext,
        options: {
            ast: ProgramNode;
            code: string;
            id: string;
            meta: CustomPluginOptions;
            moduleSideEffects: boolean | "no-treeshake";
            resolvedSources: ResolvedIdMap;
            syntheticNamedExports: boolean | string;
        },
    ) => boolean
    | NullValue

    Type Declaration

      • (
            this: PluginContext,
            options: {
                ast: ProgramNode;
                code: string;
                id: string;
                meta: CustomPluginOptions;
                moduleSideEffects: boolean | "no-treeshake";
                resolvedSources: ResolvedIdMap;
                syntheticNamedExports: boolean | string;
            },
        ): boolean
        | NullValue
      • Parameters

        • this: PluginContext
        • options: {
              ast: ProgramNode;
              code: string;
              id: string;
              meta: CustomPluginOptions;
              moduleSideEffects: boolean | "no-treeshake";
              resolvedSources: ResolvedIdMap;
              syntheticNamedExports: boolean | string;
          }

        Returns boolean | NullValue