-
SummaryHi, I was wondering how I would publish a nextjs component, one file, for example: TimePicker.tsx to the npm registry. There are no decent blog posts on this and no offical docs. |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Jan 9, 2025
Replies: 1 comment 2 replies
-
Maybe give, https://github.com/huozhi/bunchee, a go. It is used by SWR, and it supports server components and such. Unless you are using next/image, next/link, etc, which are not that hard to make compatibility for, any "React component NPM" kind of should do well for you. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
enzzzooo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe give, https://github.com/huozhi/bunchee, a go. It is used by SWR, and it supports server components and such.
Unless you are using next/image, next/link, etc, which are not that hard to make compatibility for, any "React component NPM" kind of should do well for you.