@master/css-compiler
Advanced tools
Comparing version 2.0.0-beta.17 to 2.0.0-beta.18
@@ -1,12 +0,12 @@ | ||
import { MasterCSSCompilerOptions, MasterCSSCompilerSource } from './options'; | ||
import { CompilerOptions, CompilerSource } from './options'; | ||
import MasterCSS from '@master/css'; | ||
export default class MasterCSSCompiler { | ||
options?: MasterCSSCompilerOptions; | ||
constructor(options?: MasterCSSCompilerOptions); | ||
options?: CompilerOptions; | ||
constructor(options?: CompilerOptions); | ||
initializing: Promise<any>; | ||
css: MasterCSS; | ||
extractions: Set<string>; | ||
extract({ name, content }: MasterCSSCompilerSource): string[]; | ||
extract({ name, content }: CompilerSource): string[]; | ||
insert(extractions: any): void; | ||
log(name: any, content: any): void; | ||
} |
import MasterCSS from '@master/css'; | ||
import type { MasterCSSCompilerSource } from './index'; | ||
export default function extract({ content }: MasterCSSCompilerSource, masterCss: MasterCSS): string[]; | ||
import type { CompilerSource } from './index'; | ||
export default function extract({ content }: CompilerSource, masterCss: MasterCSS): string[]; |
import MasterCSS from '@master/css'; | ||
declare const defaultOptions: MasterCSSCompilerOptions; | ||
export declare type MasterCSSCompilerSource = { | ||
declare const options: CompilerOptions; | ||
export declare type CompilerSource = { | ||
name: string; | ||
content: string; | ||
}; | ||
export interface MasterCSSCompilerOptions { | ||
export interface CompilerOptions { | ||
output?: { | ||
@@ -12,7 +12,7 @@ name: string; | ||
}; | ||
accept?: (source: MasterCSSCompilerSource) => boolean; | ||
extract?: (source: MasterCSSCompilerSource, masterCss: MasterCSS) => string[]; | ||
accept?: (source: CompilerSource) => boolean; | ||
extract?: (source: CompilerSource, css: MasterCSS) => string[]; | ||
config?: string; | ||
debug?: string[] | boolean; | ||
} | ||
export default defaultOptions; | ||
export default options; |
@@ -1,3 +0,3 @@ | ||
import type { MasterCSSCompilerOptions } from './options'; | ||
import type { CompilerOptions } from './options'; | ||
import type { Plugin } from 'vite'; | ||
export default function (options?: MasterCSSCompilerOptions): Promise<Plugin>; | ||
export default function (options?: CompilerOptions): Promise<Plugin>; |
@@ -141,3 +141,3 @@ { | ||
"peerDependencies": { | ||
"@master/css": "^2.0.0-beta.22" | ||
"@master/css": "^2.0.0-beta.37" | ||
}, | ||
@@ -147,3 +147,3 @@ "dependencies": { | ||
}, | ||
"version": "2.0.0-beta.17" | ||
"version": "2.0.0-beta.18" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
67252