weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
36 lines (35 loc) • 1.71 kB
TypeScript
import type { OutputAsset } from 'rollup';
import type { BundleSnapshot } from '../bundle-state.js';
import type { RememberedCssSource } from './types.js';
export interface ResolveRememberedCssSourcePlanOptions {
configuredSourceFileKeys: ReadonlySet<string>;
currentRawSourceHasExplicitScanContext: boolean;
debug: (format: string, ...args: unknown[]) => void;
explicitConfiguredSourceFileKeys: ReadonlySet<string>;
file: string;
getRememberedCssSources: (() => Iterable<[string, RememberedCssSource]>) | undefined;
getSfcSource: ((file: string) => string | undefined) | undefined;
hasExplicitConfiguredRootSource: boolean;
normalizeConfiguredSourceFile: (file: string) => string;
originalSource: OutputAsset;
outputFile: string;
outputRoot: string;
rawSource: string;
resolveConfiguredRootSource: () => RememberedCssSource | undefined;
resolveMatchedOutputFile: (sourceFile: string) => string | undefined;
resolveTemporarySource: (outputFile: string, rawSource: string) => RememberedCssSource | undefined;
shouldKeepCurrentRootOutput: (sourceFile: string, outputFile: string) => boolean;
snapshot: BundleSnapshot;
sourceRoot: string | undefined;
temporaryOutput: boolean;
cssMatcher: ((file: string) => boolean) | undefined;
}
export interface RememberedCssSourcePlan {
forceNonMainChunk: boolean;
hasUsableTailwindSource: boolean;
outputFile: string;
resolvedFromTemporarySource: boolean;
sources: RememberedCssSource[];
usedConfiguredSourceFiles: string[];
}
export declare function resolveRememberedCssSourcePlan(options: ResolveRememberedCssSourcePlanOptions): Promise<RememberedCssSourcePlan>;