weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
31 lines (30 loc) • 1.86 kB
TypeScript
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
import type { GeneratorSourceRecord } from '../source-resolver.js';
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
export declare function mergeScopedRuntimeWithCurrentRuntime(scopedRuntime: Set<string>, runtime: Set<string>, options: {
currentCssCandidates?: string[] | undefined;
cssHandlerOptions: IStyleHandlerOptions;
isolateCssSource: boolean;
majorVersion?: number | undefined;
matchedCssSourceFile: boolean;
}): Set<string>;
export declare function shouldIsolateScopedCssSource(_majorVersion: number | undefined, record: GeneratorSourceRecord, sourceEntries: TailwindSourceEntry[] | undefined, options: {
cssHandlerOptions?: IStyleHandlerOptions | undefined;
target: string;
}): boolean;
export declare function shouldIsolateCurrentTailwindV4CssCandidates(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
hasGeneratedCss: boolean;
hasGeneratedMarkers: boolean;
rawSource: string;
}): boolean;
export declare function shouldScanTailwindV4Sources(majorVersion: number | undefined, target: string, generatorRuntime: Set<string>, isolateCssSource: boolean): boolean;
export declare function shouldAppendWebBundleCssFallback(target: string, _options: {
hasSourceDirectives: boolean;
hasMatchedCssSourceFile: boolean;
}): target is "web";
export declare function isEmptyCssSourceOrderParts(parts: {
before: string;
after: string;
}): boolean;
export declare function resolveGeneratorStyleOptions(opts: InternalUserDefinedOptions, cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Partial<IStyleHandlerOptions>;