Open predaytor opened 3 months ago
Could you try vite-plugin-stylex@0.9.0-next.0
to see if the plugin works better with Lightning CSS?
See the changelog just in case the breaking changes affect your project: https://github.com/HorusGoul/vite-plugin-stylex/blob/waitForRequestsIdle-refactor/packages/vite-plugin-stylex/CHANGELOG.md
@HorusGoul same behavior, dev mode doesn't apply lightningcss post-processing.
@predaytor Just released 0.9.0-next.1
, this one works as expected in the Stackblitz you shared (StyleX generated style and the .primary styles have the same result)
I believe any future errors related to Lightning might come from either Vite or Lightning themselves, there's not a lot more I can do from this plugin :thinking:
thx!
Stackblitz (https://stackblitz.com/edit/remix-run-remix-vneo6e?file=app%2Froutes%2F_index.tsx)
Post-processing with LightningCSS does not work in dev mode. The production build works as expected.
css output:
should be:
Notice the defined CSS in the regular imported stylesheet (in our case the main import
/styles/index.css
), the post-processing is working properly.