diff --git a/.changeset/remove-bom.md b/.changeset/remove-bom.md deleted file mode 100644 index 0dcd6adb..00000000 --- a/.changeset/remove-bom.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"sass-loader": patch ---- - -Remove the byte order mark (BOM) from the compiled CSS. `dart-sass` prepends it when the compiled CSS contains non ASCII characters and the `style` option is `compressed` (the default for the `production` mode), but a BOM is only valid at the very beginning of a file - tools like `css-loader` move `@import` at-rules above it, so it ended up in the middle of the generated CSS and broke the rule after it. Source maps are shifted accordingly. diff --git a/CHANGELOG.md b/CHANGELOG.md index c5139265..f88c70cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 17.0.1 + +### Patch Changes + +- Remove the byte order mark (BOM) from the compiled CSS. `dart-sass` prepends it when the compiled CSS contains non ASCII characters and the `style` option is `compressed` (the default for the `production` mode), but a BOM is only valid at the very beginning of a file - tools like `css-loader` move `@import` at-rules above it, so it ended up in the middle of the generated CSS and broke the rule after it. Source maps are shifted accordingly. (by [@alexander-akait](https://github.com/alexander-akait) in [#1337](https://github.com/webpack/sass-loader/pull/1337)) + ## 17.0.0 ### Major Changes diff --git a/package.json b/package.json index 4272e4e5..4d93c49c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sass-loader", - "version": "17.0.0", + "version": "17.0.1", "description": "Sass loader for webpack", "keywords": [ "sass",