What does “The code generator has deoptimised the styling of [some file] as it exceeds the max of ”100KB“” mean?

前端 未结 9 1456
失恋的感觉
失恋的感觉 2020-11-30 19:18

I added a new npm package to my project and require it in one of my modules.

Now I get this message from webpack,

build modulesNote: The code generator

9条回答
  •  被撕碎了的回忆
    2020-11-30 19:48

    This seems to be a Babel error. I'm guessing you use babel-loader, and are not excluding external libraries from your loader test. As far as I can tell, the message is not harmful, but you should still do something like this:

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

    Have a look. Was that it?

提交回复
热议问题