Critical dependency: require function dependencies cannot be statically extracted
问题VUE引用一个新的依赖后,编译打包时出现如下警告: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted关键依赖:require函数的使用方式无法静态提取依赖项。原因webpack 再使用变量作为require路径时,打包 Critical dependencies 警告解决在webpack的module配置中增加如下设置,u