webpack. config and babel.config.js code example
Example 1: webpack babel config
npm install -D babel-loader @babel/core @babel/preset-env webpack
Example 2: configure webpack, babel to work with node
npm install [email protected] [email protected] [email protected] @babel/[email protected] [email protected] @babel/[email protected] @babel/[email protected] --save-dev