AleshaOleg / AleshaOleg/postcss-sass

Fix empty file processing

Aberta
#180 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
92
Forks
12
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

The processing of an empty file returns the wrong source and breaks stylelint.

See [this issue](https://github.com/stylelint/stylelint/issues/7172) and this code:
```node
> require('postcss-scss').parse('').source
{
input: Input {
css: '',
hasBOM: false,
id: '',
[Symbol(fromOffsetCache)]: [ 0 ]
},
start: { column: 1, line: 1, offset: 0 },
end: { column: 1, line: 1, offset: 0 }
}

> require('postcss-sass').parse('').source
{
start: [ 0, 0 ],
end: [ 0, 0 ],
input: Input { css: '', hasBOM: false, id: '' }
}
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.