Skip to content

Custom theme sub-packages in the mono repo cannot use Node-related APIs. #4589

Closed Answered by brc-dd
shellRaining asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need 2 entrypoints in your theme. One for client, one for node. Currently both server side and browser code is being compiled into single file by tsup.

Ah, I see you're already doing that. I think you need to remove export * from config here - https://github.com/shellRaining/shellRaining-blog/blob/main/packages/theme/src/index.ts

Replies: 1 comment 1 reply

Comment options

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

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