UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

23 lines (22 loc) 1.76 kB
import type { OutputAsset, OutputChunk } from 'rollup'; import type { OutputEntry } from './bundle-entries.js'; import type { RuntimeCompilationBuildState, RuntimeCompilationSnapshot, RuntimeEntryType, RuntimeSnapshotEntry, UpdateRuntimeCompilationBuildStateOptions } from '../../compiler/index.js'; import type { InternalUserDefinedOptions } from '../../types/index.js'; export type EntryType = RuntimeEntryType; export interface BundleStateEntry extends RuntimeSnapshotEntry { output: OutputAsset | OutputChunk; } export interface BundleSnapshot extends RuntimeCompilationSnapshot<BundleStateEntry> { jsEntries: Map<string, OutputEntry>; } export type BundleBuildState = RuntimeCompilationBuildState; export interface BuildBundleSnapshotOptions { hasOmittedKnownFiles?: boolean | undefined; removedFiles?: Iterable<string> | undefined; } export declare function runWithRemovedBundleFiles<T>(removedFiles: Iterable<string>, run: () => Promise<T>): Promise<T>; export declare function createBundleBuildState(): BundleBuildState; export declare function classifyBundleEntry(file: string, opts: InternalUserDefinedOptions): EntryType; export declare function buildBundleSnapshot(bundle: Record<string, OutputAsset | OutputChunk>, opts: InternalUserDefinedOptions, outDir: string, state: BundleBuildState, forceAll?: boolean, options?: BuildBundleSnapshotOptions): BundleSnapshot; export declare function buildBundleSnapshotForBuild(bundle: Record<string, OutputAsset | OutputChunk>, opts: InternalUserDefinedOptions, outDir: string): BundleSnapshot; export declare function updateBundleBuildState(state: BundleBuildState, snapshot: BundleSnapshot, linkedByEntry: Map<string, Set<string>>, options?: UpdateRuntimeCompilationBuildStateOptions): void;