-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Library Mode #781
Comments
For libraries, you can also use microbundle |
Indeed! (though I do think Microbundle could be much simpler) |
One thing that might be worth considering though, is that it'd be pretty easy for us to add a way to do additional Rollup builds, similar to what Vite provides with |
Thanks for the recommendation regarding microbundle! Seems very useful! One thing I really liked about wmr is that it's really small and has minimal dependencies. If I'm going to be using what is provided by wmr as a library, it'd be perfect.
Yes, this is specifically what I was thinking. My usecase is to separate my app into a monorepo. Having wmr have a library mode mean I can just have wmr in every package and build it there. Addendum: Would it even be possible to support input files via the cli, so that it'd only be one dependency we can reference via '../../scripts' similar to how |
Is your feature request related to a problem? Please describe.
It's amazing how much functionality is packed into this tiny tool.
One thing I really like about vite is that it has a handy 'Library Mode', which allows you to build your package for distribution. It would be great if wmr has such functionality as well.
Describe the solution you'd like
A config you can add in wmr.config.mjs
The text was updated successfully, but these errors were encountered: