Home > @fullhuman/purgecss-from-tsx > purgeFromTsx

purgeFromTsx() function

Create function to extract selectors from tsx code

Signature:

declare function purgeFromTsx(options?: {
    acornOptions?: acorn.Options;
    tsOptions?: ts.CompilerOptions;
}): (content: string) => string[];

Parameters

ParameterTypeDescription
options{ acornOptions?: acorn.Options; tsOptions?: ts.CompilerOptions; }(Optional) acorn options

Returns:

(content: string) => string[]

the function to extract selectors from tsx code