UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

13 lines (12 loc) 550 B
import type { PartialMessage } from 'esbuild'; import type { ICompiler, Source } from '../../../types'; export type PreprocessRender = (content: string, stdinPath: string, stdinDir: string, preprocessOptions: any, resolvePathMap: Map<string, string>, implementation?: object | string) => Promise<{ css: Buffer | string; errors?: PartialMessage[]; warnings?: PartialMessage[]; map?: Buffer | string; }>; export declare function transformStyle(this: ICompiler, source: Source): Promise<{ code: string; loader: "css" | "js"; }>;