matt-ball / postman-local

A client to facilitate local development of scripts for Postman.
Apache License 2.0
70 stars 6 forks source link

Adding detective module to browserify a script only when it requires other modules. #38

Closed kevinswiber closed 4 years ago

kevinswiber commented 4 years ago

Related to #12.

Signed-off-by: Kevin Swiber kswiber@gmail.com

kevinswiber commented 4 years ago

Maybe hold-off on this one until after #39 is merged. I think we'll have to take a different approach that takes into account excluded modules, probably copying something like this: https://github.com/browserify/browserify/blob/00c913fa345dbb7f612bdad6b4acc91c706e98b2/bin/cmd.js#L38-L44.