![webpack documentation basic setup webpack documentation basic setup](https://www.robinwieruch.de/static/408c98453f7506d837a10626a476a7ab/9dc27/banner.jpg)
They do a far better job of explaining what is going on here. All I can really say about this is just pay attention to paths and make sure you check the webpack documentation. Well, when you understand most of the important Webpack concepts, we can jump to a practical Webpack setup.
![webpack documentation basic setup webpack documentation basic setup](https://miro.medium.com/max/1400/1*LZJJDYgRmOYULj0ukKefEg.png)
By default, the mode is set to production. It can have the following values: development, production or none. Personally, I like it for live-reloading in my browser. Webpack mode is a parameter that lets Webpack know what’s the environment of the application.
WEBPACK DOCUMENTATION BASIC SETUP HOW TO
The question is, is there a way to get this same result purely through the webpack config? Again, I'm not all that familiar with how to play around in webpack outside of some basic common setup tasks, so I hope I'm phrasing this in a way that makes sense. If you don’t want to use webpack-dev-server you don’t have to. Import 'core-js/stable/object/get-own-property-symbols' While troubleshooting this, I've been able to get it fixed by adding core-js as a dependency in package.json and adding the following imports to the main.js file: import 'core-js/stable/array/for-each' The resulting behavior is a bit frustrating simply put, nothing happens when the page is loaded in those browsers, no console errors, just nothing. forEach and spread operators in ie11 (specifically when iterating over a node list).
![webpack documentation basic setup webpack documentation basic setup](https://user-images.githubusercontent.com/6245927/74553090-9b675180-4f7c-11ea-9441-ecb67b2523fb.png)
So, the situation currently is that a coworker updated a bunch of packages recently, babel among them, and babel is no longer transpiling the code properly for. DISCLAIMER: I'm not terribly familiar with webpack or babel outside of simple setup, so if the question isn't clear then I apologize and will do my best to offer further clarity.