fix: allow duplicate selectors in scope, coz its safe to have them, coz hashing isnt affected by selector position
This commit is contained in:
parent
886c7a3541
commit
4fb4efd933
1 changed files with 68 additions and 11 deletions
|
|
@ -28,12 +28,7 @@ impl CompilerAdapter {
|
|||
) -> Result<String, SabryCompilerError> {
|
||||
let options = grass::Options::from(&self.config).input_syntax(syntax.into());
|
||||
|
||||
let mut css = grass::from_string(code, &options)?;
|
||||
|
||||
css = match self.lightningcss(&css) {
|
||||
Ok(c) => c,
|
||||
Err(e) => return Err(e),
|
||||
};
|
||||
let css = self.lightningcss(&grass::from_string(code, &options)?)?;
|
||||
|
||||
Ok(css)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue