keep es5 compatibility #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
using keys as values is es6+. this broke
pull-stream-docs's build because it uglifies the javascript and uglify breaks on anything beyond es5.note: i'm totally in favor of a subset of es6+, but i think it's best we keep browser compatibility via es5 or specifying browserify transforms in
package.json. or at least that's my strategy. another strategy is to pre-transpile before publish (the most popular yet in my opinion most ugly) or expect consumers to transpile with global transforms.