webpack 4 - loading only required babel plugins code example Example: webpack babel config Click to copynpm install -D babel-loader @babel/core @babel/preset-env webpack