NiGhTTraX / ts-monorepo

Template for setting up a TypeScript monorepo
MIT License
1.5k stars 169 forks source link

How it works with vite & Styled Components #285

Closed FredericoGauz closed 1 year ago

FredericoGauz commented 2 years ago

Hi,

I was looking at this template and it seems to be just what I have looking for quite a some time, I have a medium sized project that is set on yarn workspaces but have a few issues with code sharing (like not being able to automatically find a dependency when used for the first time, i.e. I have to manually write it's path once in that package) and sometimes quite a few very cryptic errors regarding having different versions of (typescript for example) on different packages or errors in finding those same dependencies.

But before moving everything to this project, I would like to ask first if anyone has used this setup with vite and styled components (the version with babel support) before, and if so, if that worked.

I have had particular difficult with using styled components babel support in components imported from another library (internal library in the project).

Thanks is advance!

NiGhTTraX commented 1 year ago

Hey @FredericoGauz, I just added a Vite example.

styled components (the version with babel support)

Regarding this, can you clarify what babel support means here? Is it this? Perhaps the babel-example is what you need?