Skip to content

Could someone help me get the postcss plugin working with solid js? #845

Answered by nmn
taphill asked this question in Q&A
Discussion options

You must be logged in to vote

@taphill setting treeshakeCompensation: false in the babel config seems to solve the problem:

https://stackblitz.com/edit/vitejs-vite-ntuc7mbx?file=package.json,babel.config.cjs,src%2Ftokens.stylex.ts,src%2FApp.tsx

I also added the StyleX Babel plugin as an explicit dependency but I don't think that should make a difference since the package is installed either way. Still, it's a good practice to do so since it may not work with pnpm or bun.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@nmn
Comment options

nmn Jan 11, 2025
Collaborator

Comment options

You must be logged in to vote
5 replies
@taphill
Comment options

@nmn
Comment options

nmn Jan 11, 2025
Collaborator

@taphill
Comment options

@nmn
Comment options

nmn Jan 17, 2025
Collaborator

@nmn
Comment options

nmn Jan 17, 2025
Collaborator

Answer selected by taphill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants