Files
test-repo/changelog_unreleased/scss/11683.md
T
db0e9d228d Fix @forward with formatting error (#11683)
* Resolves #11636. Added null check for iPrevNode

* undefined check

* Add changelog

* Add tests

* Update tests

* Update changelog

Co-authored-by: Sriram Arul <sriram.arul@zohocorp.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-10-29 18:16:50 +09:00

325 B

Fix @forward with formatting error (#11683 by @sriramarul, @sosukesuzuki)

// Input
@forward 'foo.scss' with ($components: red);

// Prettier stable
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier main
@forward "foo.scss" with (
  $components: red
);