Es6 to Es5 (use babel)
npm i babel-loader @babel/core @babel/preset-env -D
Turn es7 syntax
Configured as above
Convert some advanced syntax
npm i @babel/polyfill -D
Eslint syntax check
npm i eslint-loader -D
On the official website, configure the configuration items that need to be verified and download them.
Load the loader: