Building an npm package that has server actions
Hi i am building a small npm package and i want it to use server-actions a bit stuck for a couple of days and i just can't seem to find good examples, runing into tbh propper skill issues when it comes to building standalone packages. Would really apreciate help.
1 Reply
Well just to make sure people get it, i made the package it works
but the issue seems to be connected with 'use server' and 'use client' banners, i wrote a custom function inside of the tsup esbuild thing that handless most of the things but i can't find a smart way to do this as it feels extreamly hacky and will be unmanagable if the package gets a bit bigger (more actions more components ect)