mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
* Uses rollup for ESM build and d.ts bundling.
Moves monaco.languages.{typescript, json, html, css} to monaco.*.
Moves monaco.editor.createWebWorker to monaco.createWebWorker.
* Adds excluded files from dist, as they needed to be patched.
31 lines
970 B
TypeScript
31 lines
970 B
TypeScript
import type { AsyncCompiler, Options } from "sass";
|
|
type SassAsyncCompiler = Pick<AsyncCompiler, "compileAsync" | "compileStringAsync">;
|
|
export type PostCssCompatible = {
|
|
process: (css: string, opt: {
|
|
from: string;
|
|
to: string;
|
|
map: {
|
|
prev: string;
|
|
inline: boolean;
|
|
} | null;
|
|
}) => string | {
|
|
css: string;
|
|
map?: string;
|
|
};
|
|
};
|
|
export interface CompilationOptions {
|
|
outputExt: string;
|
|
sass?: SassAsyncCompiler;
|
|
postProcessor?: (css: string, map: string) => Promise<PostCssCompatible | string | {
|
|
css: string;
|
|
map?: string;
|
|
}>;
|
|
loadPaths?: string[];
|
|
sourceMap?: boolean;
|
|
sassOptions: Options<"async">;
|
|
}
|
|
export declare const compileSass: (sassPath: string, outWatchList: string[] | undefined, { outputExt, sass, postProcessor, loadPaths, sourceMap, sassOptions }: CompilationOptions) => Promise<{
|
|
css: string;
|
|
map: string;
|
|
}>;
|
|
export {};
|