Skip to content

package files should not contain es6 syntax "const" #1170

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

Closed
1 of 3 tasks
MarvinXu opened this issue Nov 1, 2017 · 3 comments
Closed
1 of 3 tasks

package files should not contain es6 syntax "const" #1170

MarvinXu opened this issue Nov 1, 2017 · 3 comments

Comments

@MarvinXu
Copy link

MarvinXu commented Nov 1, 2017

  • Operating System: window 7 x64
  • Node Version: v6.10.2
  • NPM Version: 3.10.10
  • webpack Version: 2.5.1
  • webpack-dev-server Version: 2.9.3
  • This is a bug
  • This is a feature request
  • This is a modification request

Expected Behavior

no es6 syntax in package files

Actual Behavior

contains "const" in client/overlay.js

For Bugs; How can we reproduce the behavior?

npm install webpack-dev-server

@shellscape
Copy link
Contributor

Please do review the documentation in the README https://github.com/webpack/webpack-dev-server#caveats

@MarvinXu
Copy link
Author

MarvinXu commented Nov 1, 2017

But this way I couldn't test my https website even in an IOS9 machine, how should I fix this if I want to use the latest version of webpack-dev-server?

@shellscape
Copy link
Contributor

shellscape commented Nov 1, 2017

@MarvinXu you can't use the latest version if you need to support browsers that don't support const and let. iOS 9 was released in 2015 and oldIE support was killed in 2016. As the README states, you'll have to use v2.7.1 if you want to support platforms that old.

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

No branches or pull requests

2 participants