How to use an external lib that uses StyleX? #343
-
I have a Next.js project which depends of a lib that uses StyleX. How to make it works without including the whole generated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Why I don't want to just import the compiled
Is this usecase covered by stylex? Do I have to use monorepo for that? |
Beta Was this translation helpful? Give feedback.
-
So I guess the solution for that is monorepo. I am digging. Related topics: |
Beta Was this translation helpful? Give feedback.
-
The lib shouldn't be compiling styles before publish. When you bundle the components in your project and any components from dependencies using StyleX, that is when StyleX should be used to compile all styles and a bundler can extract them to a CSS file |
Beta Was this translation helpful? Give feedback.
The lib shouldn't be compiling styles before publish. When you bundle the components in your project and any components from dependencies using StyleX, that is when StyleX should be used to compile all styles and a bundler can extract them to a CSS file