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

20 lines (19 loc) 807 B
import { Options } from "@swc/core"; import { Plugin } from "vite"; import { YakConfigOptions } from "../withYak/index.js"; //#region loaders/vite-plugin.d.ts type ViteYakPluginOptions = YakConfigOptions & { /** * Base path for resolving CSS virtual module paths. * Relative paths are resolved from Vite's project root. * In monorepo setups where source files live outside the Vite project root, * set this to the monorepo root to avoid broken CSS imports. * @defaultValue Vite's resolved `root` */ basePath?: string; swcOptions?: Omit<Options, "filename" | "sourceFileName" | "inputSourceMap" | "sourceMaps" | "sourceRoot">; }; declare function viteYak(userOptions?: ViteYakPluginOptions): Promise<Plugin>; //#endregion export { viteYak }; //# sourceMappingURL=vite-plugin.d.ts.map