Skip to content

Bundling token.stylex.js files #503

Closed Answered by BMCwebdev
BMCwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

I have updated the repositories to use the new token setup of

  • tokens as an independent workspace package in the monorepo
  • token files set up to remain unaltered, and package is just the original files
  • consuming app needs to have the following as dependencies
    • the component library package
    • the token package
    • stylex
  • token files set up as external in vite config

Should also mention that if you are using @HorusGoul Vite plugin, you need to add the component library and the tokens to the libraries key. See the Vite config file in the example Vite App repo

I think there as been a lot of specific config wrangling to get this to work with Vite, and I am super grateful for the Vite plugins that …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@derekjwilliams
Comment options

@BMCwebdev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@BMCwebdev
Comment options

Answer selected by BMCwebdev
@BMCwebdev
Comment options

@nmn
Comment options

nmn Mar 31, 2024
Collaborator

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