caolan / highland

High-level streams library for Node.js and the browser
https://caolan.github.io/highland
Apache License 2.0
3.43k stars 147 forks source link

Consider using ES modules and shipping non-transpiled build #606

Open jgrund opened 7 years ago

jgrund commented 7 years ago

Consider using / bunding ES Modules alongside other methods of distribution.

By doing so, users can utilize tools such as rollup, which perform tree-shaking and reduce code footprint.

vqvu commented 7 years ago

+1 on this. Does the fact that Highland extend EventEmitter complicate things? That's one of the reason we use browserify right now, and I don't know anything about how rollup works.

Unfortunately, I don't have the cycles to do the leg work on this. Happy to accept a PR, though.