ts-transform-css-modules-next
Version:
Transforms styleName to atomic CSS className using compile time CSS module resolution.
11 lines (10 loc) • 355 B
TypeScript
import * as ts from 'typescript';
export interface Config {
preprocessor: 'stylus' | 'sass';
autoprefix?: Boolean;
paths?: ReadonlyArray<string>;
output: String;
globalPath?: string;
}
declare const _default: (CONFIG?: Config) => (context: ts.TransformationContext) => ts.Transformer<ts.SourceFile>;
export default _default;