Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Looking for a Guide or Example for Creating a Preact Module/Libraries/Add-ons #4697

Unanswered
prakhardubey2002 asked this question in Q&A
Discussion options

Hi everyone,

I want to create a Preact module and publish it as an NPM package, but I’m looking for a good example or guide to learn from. Specifically, I need help with:

  • Setting up a Preact library with Vite
  • Handling ESM & CJS compatibility correctly
  • Avoiding CJS errors when used in different environments

Are there any open-source Preact libraries, boilerplates, or in-depth guides that you’d recommend? I’d love to learn from an existing well-structured example.

Thanks in advance! 🚀

You must be logged in to vote

Replies: 1 comment

Comment options

you mean you wanna learn preact internals and build something similar?

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

AltStyle によって変換されたページ (->オリジナル) /