RainZhai / rainzhai.github.com

宅鱼
http://rainzhai.github.io
Apache License 2.0
2 stars 0 forks source link

webpack Uglifyjs unexpeected token: name($) #16

Open RainZhai opened 7 years ago

RainZhai commented 7 years ago

在全局使用jq,使用extenal,不需要专门作为模块。在使用webpack打包后,出现报错。主入口js中使用了let $=require('jQuery');会无法编译,let改为var即可