This seems to be a pre-built javascript file. webpack报这个警告怎么办?

增加 module.noParse 进行解决 

例如:

{
  resolve: {
    alias: {
      'react': 'my/react/path'
    }
  },
  module: {
    noParse: [/react/]
  }
}
posted @ 2016-07-04 14:41 hevily Views(...) Comments(...) Edit 收藏