Strange output generated by stylex with webpack #494
-
Hi, We started using stylex in our product and although it works great, the output of the css file looks strange. .xdpqu6t:not(#\#){padding:8px var(--xk99hms)}
.xe3t0ma:not(#\#){padding:var(--x1gsase5) var(--x1cp0i28)}
.x9r1u3d:not(#\#):not(#\#){border-color:transparent}
.x6vskdb:not(#\#):not(#\#){border-color:var(--x4b0og2)}
.xixl9f9:not(#\#):not(#\#){border-radius:14px}
.xgqmno8:not(#\#):not(#\#){border-radius:16px}
.x11j6hjo:not(#\#):not(#\#){border-radius:var(--x149zaps)}
.x1jrafhy:not(#\#):not(#\#){border-radius:var(--x16ufu40)}
.x1uioq7m:not(#\#):not(#\#){border-radius:var(--x17sycxl)}
.x15tiq8k:not(#\#):not(#\#){border-radius:var(--x1m44fmx)} I am using stylex": "0.4.1" since the storybook crashes with latest webpack version and latest version of stylex does not work with previous webpack. I did a small node script that removes that after build and it works ok. However, in dev mode I still have them like this for each style. Looking forward to your answer, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I actually was able to update but I am still using @stylexjs/babel-plugin with version "0.4.1" since the last one crashes storybook. But the output file looks the same with "@stylexjs/stylex": "0.5.1" |
Beta Was this translation helpful? Give feedback.
-
What exactly is wrong with the output? If you are referring to |
Beta Was this translation helpful? Give feedback.
What exactly is wrong with the output? If you are referring to
#\#
, it's a layers polyfill. You can read about it here or google it.I suppose that when layers have wider support, the syntax will be changed to the normal @layer syntax. But here, we probably need to wait for comments from maintainers.