how to use babel loader in webpack config code example Example: webpack babel config npm install -D babel-loader @babel/core @babel/preset-env webpack