This is what my babel webpack config looks like:
rules: [ { test: /\\.js$/, use: { loader: \'babel-loader\',