You may be using ES6 or ECMAScript 2015. Not all browsers support all of the newest features without a transform. So ECMAScript is often compiled into plain JavaScript before being loaded into the browser. The tool that is most widely used for the transformation of ES6 to ES5 JavaScript is Babel. In this video, I'm going to show you how to set up Webpack with babel-loader. When we use the babel-loader, we tell the Webpack to use Babel to perform these transformations on specific files.
Chapters:
00:00 Intro
00:29 Install Babel and babel-loader
00:56 Configure Webpack 5 with babel-loader
01:47 Configure Babel
02:24 Transpile ES6+ using Webpack and Babel
Github Repo: https://github.com/rapidevelop/ex_web...