UNPKG

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

16 lines (15 loc) 668 B
import { LoaderContext } from "webpack"; import { YakConfigOptions } from "../withYak/index.js"; //#region loaders/turbo-loader.d.ts /** * This loader transforms styled-components styles to a static data-url import * The compile-time nexy-yak transformation takes javascript/typescript as input, * strips all inline css code and adds the css as static css urls * e.g.: `import "data:text/css;base64,"` */ declare function cssExtractLoader(this: LoaderContext<{ yakOptions: YakConfigOptions; yakPluginOptions: any; }>, code: string, sourceMap: string | undefined): Promise<string | void>; export = cssExtractLoader; //# sourceMappingURL=turbo-loader.d.cts.map