types(compiler-sfc): use specific preprocessLang instead of string (#528)
This commit is contained in:
@@ -104,7 +104,9 @@ const styl: StylePreprocessor = {
|
||||
}
|
||||
}
|
||||
|
||||
export const processors: Record<string, StylePreprocessor> = {
|
||||
export type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus'
|
||||
|
||||
export const processors: Record<PreprocessLang, StylePreprocessor> = {
|
||||
less,
|
||||
sass,
|
||||
scss,
|
||||
|
||||
Reference in New Issue
Block a user