Skip to content

Webpack Dev Server No Longer Runs On Older Browsers #1105

Closed
@bdwain

Description

@bdwain
  • Operating System: Mac Sierra
  • Node Version: 8.5
  • NPM Version: 5.4.2 (But I use yarn 1.0.2)
  • webpack Version: 3.6.0
  • webpack-dev-server Version: 2.8.2
  • This is a feature request
  • This is a bug

Code

  // webpack.config.js
  anything will have this issue as long as you run webpack dev server

Expected Behavior

I can run my dev server in chrome 30, the latest browser supported on an old tablet that I'm trying to support, the samsung tab 4

Actual Behavior

It crashes with Uncaught SyntaxError: Use of const in strict mode.

For Bugs; How can we reproduce the behavior?

Run webpack dev server on chrome 30.

I believe the issue originated with this PR #1058, because the const that causes the error is in https://github.com/webpack/webpack-dev-server/blob/master/client/index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions