developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8.06k stars 361 forks source link

Add @rollup/plugin-run plugin #812

Closed CallMeLaNN closed 3 years ago

CallMeLaNN commented 3 years ago

I wanted to use microbundle seems it quite suitable for modern node project.

Since the Rollup plugins is not configurable, I just fork to add @rollup/plugin-run.

I wanted to serve the output together with microbundle watch because it is faster than nodemon. The plugin only activated on options.watch is true.

Would you mind to have the plugin here?

The only thing left is to make sure it only activated for node entry point or opt-in by switch.

wardpeet commented 3 years ago

Hey,

@rollup/plugin-run seems nice but you might need to pass some extra parameters to it if you have a special setup. For now we'll stick with nodemon. Thanks for asking!