budo icon indicating copy to clipboard operation
budo copied to clipboard

Multiple entry points

Open webholics opened this issue 9 years ago • 6 comments

It would be great if budo would support multiple entry points like:

budo src/index.js:static/bundle.js src/lib.js:static/lib.js

webholics avatar Feb 10 '16 08:02 webholics

This would be cool but it's technically difficult, and opens up a lot of questions:

  • Currently that syntax is used to concat multiple files into the same bundle, like budo test/*.js --serve bundle.js – both features can't exist in tandem without new syntax
  • This would be a pretty drastic breaking change; we would no longer use the --serve argument, but instead each entry would have to specify its own (optional) script src URL
  • How to handle duplicate modules between the two bundles?
  • Does this mean we spin up multiple instances of watchify?

mattdesl avatar Feb 10 '16 15:02 mattdesl

Ok I understand. Its just that we were coming from beefy and wanted to transfer our dev workflow to budo. Beefy supports multiple entry points but the live reloading of budo is much better.

webholics avatar Feb 10 '16 15:02 webholics

I'm open to discussing it further and integrating something if we can find a nice solve. :smile:

mattdesl avatar Feb 10 '16 15:02 mattdesl

I did some research, and beefy indeed starts multiple instances of watchify when provided with multiple entry points. It does not explicitly handle duplicate modules between the two bundles (I also would prefer to not do anything magical in this case).

I understand that its quite difficult to implement with the current budo api. Maybe we'll just bundle everything in dev mode.

webholics avatar Feb 10 '16 16:02 webholics

:+1: do want also transitioning from beefy with multiple bundles

kumavis avatar Apr 19 '19 06:04 kumavis

+1 would love to have multiple entry points. looking for a new solution, might have to check out beefy...

cosmikwolf avatar Jun 10 '21 03:06 cosmikwolf