-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Project built with v2.8.2 outputs webpack code with ES6 features which causes error with browsers that don't support it #1104
Comments
@pavle-goloskokovic thanks for filing an issue. this is kind of a duplicate of #1091, but you've been more specific, so we'll address it. Unfortunately we're not supporting browsers that don't support |
Can a "Breaking Changes" section be added to the v2.8.0 release notes, noting that browsers that do not natively support ES6 will no longer be supported? This would help alleviate confusion for users upgrading, especially those that test/unit-test on older browsers. Thank you! |
I agree with @e01010100 . I just ran into this issue and it took me a while to figure out what was going on (Thought it had something to do with my webpack config or babel-loader). |
Agree.I was just involved in some project , which had some webpack config that I am not very familiar with.I was so puzzled until I found this page. |
This issue took me more than 2-3 days to figure out after I saw that small notice on README. This is like a side project/repo to webpack and this info is not easy to find. I'm working with multiple "smart" devices/platforms that often have really bad debugging possibilities and webpack is the best thing that ever happend to these devices because of hot loading in development etc. Is their a reason why you don't define |
Wait, what?! So WDS doesn't compile according to the webpack config? |
@ViggoV It's normal to set |
I ended up adding |
I'm building an app that targets device with a browser that does not support ES6 features.
I've been using webpack-dev-server for development and it worked fine up to and including v2.7.1.
When I updated version to 2.8.2 it started outputting webpack code with ES6 features which causes browser to throw an error.
Project code and configuration for webpack, typescript and command for running webpack-dev-server are the same, the only difference is webpack-dev-server version.
Building app only with webpack works fine as well.
You can find below code that is server by webpack-dev-server after starting it:
Code
Compiled webpack code with webpack-dev-server v2.7.1:
Compiled webpack code with webpack-dev-server v2.8.2:
Expected Behavior
Code runs fine when built with webpack-dev-server v2.8.2.
Actual Behavior
Browser throws an error:
How can we reproduce the behavior?
const
orlet
(any such browser can be found in this table: https://kangax.github.io/compat-table/es6/)The text was updated successfully, but these errors were encountered: