Following on from this question I have set up my Webpack 4 config to handle babel-loader like this
babel-loader
{ module : { rules : [{ test : /\
I had a similar problem and the reason was that Babel was transpiling my css-loader webpack plugin. Look here: MiniCssExtractPlugin error on entry point build