svelte-preprocess
Advanced tools
Comparing version 4.7.0 to 4.7.1
@@ -0,1 +1,10 @@ | ||
## [4.7.1](https://github.com/sveltejs/svelte-preprocess/compare/v4.7.0...v4.7.1) (2021-04-18) | ||
### Features | ||
* export autopreprocess options type ([f5e1a63](https://github.com/sveltejs/svelte-preprocess/commit/f5e1a635f586a9780b0a71db979f6ffb30b31221)) | ||
# [4.7.0](https://github.com/sveltejs/svelte-preprocess/compare/v4.6.9...v4.7.0) (2021-03-26) | ||
@@ -2,0 +11,0 @@ |
@@ -1,34 +0,3 @@ | ||
import type { PreprocessorGroup, Processed, TransformerArgs, TransformerOptions, Options } from './types'; | ||
declare type AutoPreprocessGroup = PreprocessorGroup & { | ||
defaultLanguages: Readonly<{ | ||
markup: string; | ||
style: string; | ||
script: string; | ||
}>; | ||
}; | ||
declare type AutoPreprocessOptions = { | ||
markupTagName?: string; | ||
aliases?: Array<[string, string]>; | ||
preserve?: string[]; | ||
defaults?: { | ||
markup?: string; | ||
style?: string; | ||
script?: string; | ||
}; | ||
sourceMap?: boolean; | ||
babel?: TransformerOptions<Options.Babel>; | ||
typescript?: TransformerOptions<Options.Typescript>; | ||
scss?: TransformerOptions<Options.Sass>; | ||
sass?: TransformerOptions<Options.Sass>; | ||
less?: TransformerOptions<Options.Less>; | ||
stylus?: TransformerOptions<Options.Stylus>; | ||
postcss?: TransformerOptions<Options.Postcss>; | ||
coffeescript?: TransformerOptions<Options.Coffeescript>; | ||
pug?: TransformerOptions<Options.Pug>; | ||
globalStyle?: Options.GlobalStyle | boolean; | ||
replace?: Options.Replace; | ||
[languageName: string]: TransformerOptions; | ||
}; | ||
import type { AutoPreprocessGroup, AutoPreprocessOptions, Processed, TransformerArgs, TransformerOptions } from './types'; | ||
export declare const transform: (name: string, options: TransformerOptions, { content, map, filename, attributes }: TransformerArgs<any>) => Promise<Processed>; | ||
export declare function sveltePreprocess({ aliases, markupTagName, preserve, defaults, sourceMap, ...rest }?: AutoPreprocessOptions): AutoPreprocessGroup; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import type { Processed as SvelteProcessed, Preprocessor } from 'svelte/types/compiler/preprocess'; | ||
import type { Processed as SvelteProcessed, Preprocessor, PreprocessorGroup } from 'svelte/types/compiler/preprocess'; | ||
import * as Options from './options'; | ||
@@ -33,1 +33,31 @@ export { Options }; | ||
} | ||
export declare type AutoPreprocessGroup = PreprocessorGroup & { | ||
defaultLanguages: Readonly<{ | ||
markup: string; | ||
style: string; | ||
script: string; | ||
}>; | ||
}; | ||
export declare type AutoPreprocessOptions = { | ||
markupTagName?: string; | ||
aliases?: Array<[string, string]>; | ||
preserve?: string[]; | ||
defaults?: { | ||
markup?: string; | ||
style?: string; | ||
script?: string; | ||
}; | ||
sourceMap?: boolean; | ||
babel?: TransformerOptions<Options.Babel>; | ||
typescript?: TransformerOptions<Options.Typescript>; | ||
scss?: TransformerOptions<Options.Sass>; | ||
sass?: TransformerOptions<Options.Sass>; | ||
less?: TransformerOptions<Options.Less>; | ||
stylus?: TransformerOptions<Options.Stylus>; | ||
postcss?: TransformerOptions<Options.Postcss>; | ||
coffeescript?: TransformerOptions<Options.Coffeescript>; | ||
pug?: TransformerOptions<Options.Pug>; | ||
globalStyle?: Options.GlobalStyle | boolean; | ||
replace?: Options.Replace; | ||
[languageName: string]: TransformerOptions; | ||
}; |
{ | ||
"name": "svelte-preprocess", | ||
"version": "4.7.0", | ||
"version": "4.7.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123122
1814