Closed porkchop closed 10 years ago
FWIW everybody, I found an alternate solution to by applying the aliasify transform on my requires to match the name of my dynamcally browserified package.
https://github.com/ForbesLindesay/browserify-middleware#browserifymodule-d-expose-dee-options lets you add the "expose" option: https://github.com/substack/node-browserify#brequirefile-opts
You probably should just use the actual name of the module though wherever possible. A lot of things become easier to work with, and it's easier to read the source code and work out where modules come from.
Thanks Forbes. I'll take a look at that :)
Hi :) Is there a way to rename a bundled module? I see that the ability exists in the straight browserify command line docs like so:
which (I am pretty sure) allows us to do this client side:
I can't seem to find the equivalent via api that might work for browserify-middleware? Like something along the lines of
allowing this client side:
Thanks for any advice, Aaron