Skip to content

Conversation

@ahdinosaur
Copy link
Member

@ahdinosaur ahdinosaur commented May 16, 2017

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.

using keys as values is es6+. this broke [`pull-stream-docs`](https://github.com/pull-stream/pull-stream-docs)'s build because it uglifies the javascript and uglify breaks on anything beyond es5.
@jamen
Copy link
Contributor

jamen commented May 16, 2017

Whoops. Yeah, it slipped my mind. I generally like writing them as ES5 too. Features like shorthand props are just too handy so I forgot! Besides that, I agree: no need to clutter up this package with a build system.

@dominictarr
Copy link
Member

pull-streams are small and light, lets just keep the code as es5.
merging

@dominictarr dominictarr merged commit d7694da into master May 16, 2017
@dominictarr
Copy link
Member

merged into 2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants