Skip to content
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

Node version 4 and ES5 support? #8

Closed
devtools-bot opened this issue Aug 29, 2017 · 10 comments
Closed

Node version 4 and ES5 support? #8

devtools-bot opened this issue Aug 29, 2017 · 10 comments

Comments

@devtools-bot
Copy link
Collaborator

From @bliu23 on July 18, 2017 16:44

Chrome Launcher does not support Node v4.8.1 nor does it support ES5. Are there plans for this or are there any workarounds for applications written in ES5?

Copied from original issue: GoogleChrome/lighthouse#2708

@devtools-bot
Copy link
Collaborator Author

From @brendankenny on July 18, 2017 17:56

We could explore workarounds for those sticking to earlier versions of Node (suggestions/advice welcome!), but generally the policy is to keep support at the current Node LTS version (currently Node v6).

@devtools-bot
Copy link
Collaborator Author

From @patrickhulce on July 18, 2017 18:39

We could explore workarounds for those sticking to earlier versions of Node (suggestions/advice welcome!)

Any objections to just flipping the target in tsconfig to es5?

cc: @samccone

@devtools-bot
Copy link
Collaborator Author

From @brendankenny on July 18, 2017 19:9

oh, good point, just the launcher. The generated code is already pretty ugly, couldn't get much worse :)

@devtools-bot
Copy link
Collaborator Author

From @samccone on July 18, 2017 20:19

we will need to add 4.x to our testing matrix.
https://github.com/GoogleChrome/lighthouse/blob/master/.travis.yml

I am -1 to supporting node version outside of LTS though and would prefer to be inline with lighthouse.

@devtools-bot
Copy link
Collaborator Author

From @wardpeet on August 3, 2017 4:56

@bliu23 If you want I can help you setup chrome-launcher for node 4 so you can build it yourself, of course it would be some manual work you'll have to do each time we update the launcher

@devtools-bot
Copy link
Collaborator Author

From @bliu23 on August 3, 2017 6:8

That would be great actually. An upgrade to Node 6 is on the drawing board, but we'll definitely need a fix until then.

@samccone
Copy link
Contributor

samccone commented Dec 2, 2017

node v4 is in maintenance until 2018

I think for this reason it is reasonable to support this.

samccone added a commit that referenced this issue Dec 3, 2017
* Fixes *
- change tsconfig to target es5
- change tsconfig to include es2015 lib polyfills
- change set iteration to use .forEach since this support is not present
  in es5
- make manual-chrome-launcher not use es2015 import syntax

REF #8
samccone added a commit that referenced this issue Dec 3, 2017
* Fixes *
- change tsconfig to target es5
- change tsconfig to include es2015 lib polyfills
- change set iteration to use .forEach since this support is not present
  in es5
- make manual-chrome-launcher not use es2015 import syntax

REF #8
@paulirish
Copy link
Member

@bliu23 do you still need this?

@bliu23
Copy link

bliu23 commented Dec 5, 2017

Whoops, probably should have posted an update but we're fully upgraded to node 6 at this point. Thank though.

@paulirish
Copy link
Member

all good!

closing.

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

No branches or pull requests

4 participants