Comments (6)
The work to create a Vite plugin is underway. We can tackle this after that is done.
from stylex.
The work to create a Vite plugin is underway. We can tackle this after that is done.
Thank you! Will that by any chance include Module support instead of CommonJS?
from stylex.
We have a POC for a Vite plugin that works with Qwik. Qwik relies on SSR in a way that is similar to Next App dir, so Making Qwik would imply that it should work with most Vite apps.
https://github.com/nmn/qwik-stylex
I will be porting this to a few additional Vite frameworks to verify that it works as expected.
@mohamedmansour We will use the cannonical module system for the bundler in question. When in doubt we compile to CJS
because Node let's you import CJS
from ESM
but not vice versa.
from stylex.
I have written the plugin through unplugin to support: rspack, esbuild and vite. The repo is here.
But there is in a primitive stage, and there are still many things to complete.
Any questions DM me, or commit an issue in the repo.
Thanks~
from stylex.
An Esbuild plugin is available as 0.5.0-alpha.2
please see if it works for your use-cases.
from stylex.
Fixed in #319
from stylex.
Related Issues (20)
- An option for the babel plugin that transforms the debug/dev classes. HOT 2
- Support Older React Versions HOT 3
- CSS Properties don't get written (esbuild) HOT 1
- Add ability to customise class names generation so we can use one letter classnames. HOT 5
- StyleX Plugin for Bun.sh Bundler HOT 6
- gridTemplateRows 0fr is being compiled to 0px, which breaks css transition HOT 4
- esbuild plugin with write:false should set file name HOT 3
- [RFC] Define value for multiple pseudo-classes at one HOT 2
- [@styles/open-props]: Has any plan/progress to support `ESM`? HOT 2
- Strange :not(#\\#) selector HOT 1
- Add option to support vertical writing modes in modern browsers
- How can I use container queries with StyleX? HOT 1
- I can't make changes to the interface (next.js & react) HOT 1
- Media query specificity order. Certian properties broken (`gridColumn`) HOT 3
- Only static values are allowed inside of a stylex.create() call. HOT 5
- Need help with Qwik.
- '0px' vars are compiled to '0' which leads to error at best, unpredicatable results at worst HOT 2
- [RFC] Defining styles inline HOT 36
- [RFC] Ref - A solution for complex CSS selectors HOT 3
- [RFC] Descendent and Sibling selectors HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylex.