Debian Codegraph @

node/esbuild-sass-plugin/lib/index.d.ts

raw
1 import { OnLoadResult } from "esbuild";
2 import { LoadCacheOptions } from "./cache";
3 import { StringOptions } from "sass";
4 import { sassPlugin } from "./plugin";
5 export type Type = 'css' | 'local-css' | 'style' | 'css-text' | 'lit-css' | ((cssText: string, nonce?: string) => string);
6 export type SassPluginOptions = StringOptions<'sync' | 'async'> & LoadCacheOptions & {
7 filter?: RegExp;
8 importMapper?: (url: string) => string;
9 includePaths?: string[];
10 basedir?: string;
11 type?: Type;
12 transform?: (this: SassPluginOptions, css: string, resolveDir: string, filePath: string) => string | OnLoadResult | Promise<string | OnLoadResult>;
13 precompile?: (source: string, path: string, isRoot?: boolean) => string;
14 cssImports?: boolean;
15 nonce?: string;
16 prefer?: 'sass' | 'style' | 'main';
17 embedded?: boolean;
18 namedExports?: boolean | "safe" | ((name: string) => string | null | undefined | false);
19 };
20 export default sassPlugin;
21 export { sassPlugin };
22 export { makeModule, postcssModules } from './utils';