You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From valid CSS files (e.g. that start with @charset "utf-8";), this plugin can generate an invalid CSS output (e.g. @charset "utf-8"; appears multiple times and/or somewhere other than the start of the file).
As a point of comparison, Vite handles this scenario by hoisting the first @charset statement it encounters to the top of the CSS output and removing any additional @charset statements: vitejs/vite#7678 and vitejs/vite#7691
As a side note, I suspect #36 is a similar issue: concatenating CSS inputs can lead to @import appearing in the middle of the output CSS; this at-rule should also only appear at the top of a file.
The text was updated successfully, but these errors were encountered:
From valid CSS files (e.g. that start with
@charset "utf-8";
), this plugin can generate an invalid CSS output (e.g.@charset "utf-8";
appears multiple times and/or somewhere other than the start of the file).References:
I've created a minimal reproduction of this issue: https://gist.github.com/alecglassford/7ef56480d4aa620b0f753a20236773d4
As a point of comparison, Vite handles this scenario by hoisting the first
@charset
statement it encounters to the top of the CSS output and removing any additional@charset
statements: vitejs/vite#7678 and vitejs/vite#7691As a side note, I suspect #36 is a similar issue: concatenating CSS inputs can lead to
@import
appearing in the middle of the output CSS; this at-rule should also only appear at the top of a file.The text was updated successfully, but these errors were encountered: