-
Notifications
You must be signed in to change notification settings - Fork 147
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
Distribute the browserified module as part of the NPM package #310
Conversation
I could be +1 on this but can you tell me why don't you use browserify in your project to rebuild the browserified version ? @vqvu do you have an idea why we don't publish the browser package ? |
That would be an option; it just feels messy to reach into my node_modules It's not a huge deal if you prefer not to ship it; I just ship a copy in On Tue, Jun 2, 2015, 2:45 AM jeromew notifications@github.com wrote:
|
@jeromew I don't know. Maybe because npm is usually used for node applications, and the browser package is useless there. I'm ambivalent about this, but I don't see the harm. Worst case, people download an addition ~180KB. So I guess that's a weak +1 for me. |
@sethkinast just to clear something up: you're using npm to install modules to be used in the browser, but you're not using Browserify yourself to build the browser bundle? You're just including script files from If so, that's a very unusual use case for npm, and not one I think we should support. However, we don't have to publish the bundle to npm: you could install Highland with npm directly from Github, by running |
I'm +1 on this as well. It's more common now for people to use a loader like https://github.com/systemjs/systemjs when building a browser app. Given that, systemjs can load modules in commonJS format, but it's not going work trying to import modules built into the node runtime. In general it's friendlier to ship the compiled bits, and most projects that are expected to run in browser / server environments do this. |
We also ship the browserified bits via bower, but most people have switched from bower to npm for browser development. |
Ok. We have a +1, a -1 and two weak +1 (+0.5?). Positive number wins. I see no obvious downside to this change either, so I'm happy to merge this. |
I've released 2.7.2 to NPM. That should contain the browserified bundles. |
Well thanks! That will simplify my repo. On Wed, Mar 23, 2016, 5:26 PM Victor Vu notifications@github.com wrote:
|
Closes #309