next-yak
Version:
next-yak is a CSS-in-JS solution tailored for Next.js that seamlessly combines the expressive power of styled-components syntax with efficient build-time extraction of CSS using Next.js's built-in CSS configuration
13 lines (10 loc) • 438 B
TypeScript
import { LoaderContext } from 'webpack';
import { YakConfigOptions } from '../withYak/index.ts';
/**
* Transform typescript to css
*
* This loader takes the cached result from the yak tsloader
* and extracts the css from the generated comments
*/
declare function cssExtractLoader(this: LoaderContext<YakConfigOptions>, _code: string, sourceMap: string | undefined): Promise<string | void>;
export { cssExtractLoader as default };