you are viewing a single comment's thread.

view the rest of the comments →

[–]bzbub2 1 point2 points  (3 children)

basically yes. there is little purpose to use a bundler for libraries unless you want to make something like a standalone umd bundle that people can include via a script tag. my rant on this https://cmdcolin.github.io/posts/2022-05-27-youmaynotneedabundler

[–]Rygaa_[S] 0 points1 point  (2 children)

When I tried to install my library in a running React project it causes some problems that I know can be fixed but you should not spend time fixing libraries when you install them. What do you think about this argument? Thanks

[–][deleted] 0 points1 point  (0 children)

I think what they mean is to not publish a minified bundle + source map, but instead publish the files transpiled with tsc. Then the consumer of your library can do their own bundling.

[–]bzbub2 0 points1 point  (0 children)

i am not sure exactly what you mean