Closed amirsarfarW closed 1 week ago
This is caused by Lightning CSS. In Rsbuild you can disable lightningcss-loader by setting tools.lightningcssLoader to false. You can also use rsbuild-plugin-css-minimizer to switch Lightning CSS to another CSS minimizer.
This is caused by Lightning CSS. In Rsbuild you can disable lightningcss-loader by setting tools.lightningcssLoader to false. You can also use rsbuild-plugin-css-minimizer to switch Lightning CSS to another CSS minimizer.
Disabling lightningcss fixes the issue in development environment but the issue is present in production build
How can I tell rsbuild to keep characters as they are in production?
You can also use rsbuild-plugin-css-minimizer to switch Lightning CSS to another CSS minimizer.
Use other CSS minimizers
so lightningcss has some bugs while this package can't fix these timely, how can rsbuild improve its QOS when we find some corner case then just wait or turn off lightningcss in our configs? @chenjiahan
lightningcss has 200+ unresolved issues which means there are so many edge cases that we can't find out in production
We will help Lightning CSS fix critical issues.
Considering that Lightning CSS has been adopted by Next.js, Turbopack, Parcel, Rspack, Vite, Rolldown, I believe these issues will be solved.
@amirsarfarW even with unicode character was transformed uncorrectly, but maybe work well? I tested in some mobile(ios 11、chrome39)
@amirsarfarW even with unicode character was transformed uncorrectly, but maybe work well? I tested in some mobile(ios 11、chrome39)
if you check
https://github.com/GoogleChrome/lighthouse/issues/10060
https://github.com/parcel-bundler/lightningcss/issues/310
there is no issue in most cases but when the css is cached by chrome the characters get weird
it is an issue with chome and lightning css and none of them are fixing their issue
Version
Details
I have this issue in font icons
I have this style:
Rsbuild produces this in dev and prod:
This has some issues when the css file is cached by the browser
Some similar issues:
https://github.com/GoogleChrome/lighthouse/issues/10060
https://github.com/parcel-bundler/lightningcss/issues/310
I have searched a lot and there is no way to prevent rsbuild from transforming unicode to character
Reproduce link
https://codepen.io/Justineo/pen/yLbxxOR
Reproduce Steps
Simply create a new project with rsbuild
Have something like this in your css:
then check the outputs in dev and prod: