Skip to content

multiple themes are not getting bundled for production #2952

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

You must be logged in to vote

I posted an issue #2953

Meanwhile there's a workaround: manually rename all themes jsons from styled-system/themes to have a static beginning like theme-SomeName.json, and correct index.mjs :

export const getTheme = (themeName) => import(`./theme-${themeName}.json`).then((m) => m.default)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dannylin108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant