error — The code generator has deoptimised the styling exceeds the max of 100kb

After using babel-loader in my web­pack con­fig, I began to see the fol­low­ing error


The code generator has deoptimised the styling of FILENAME as it exceeds the max of 100KB

Appar­ently that was because I wasnt exclud­ing my node_modules direc­tory when using babel-loader

Now, my web­pack con­fig has the fol­low­ing line


loaders: [ { jsx: /.js$/, exclude: /node_modules/, loader: 'babel-loader' } ]

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...