运行打包的时候报错
ERROR in static/js/17.d03964c667bc8c2da512.js from UglifyJs
Unexpected token: punc (() ./~/time-formater/timeformater.js:13,0
然后修改了webpack的conf.js
修改成
{ test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'), resolve('/node_modules/time-formater'), resolve('/node_modules/time-formater/packages')] }, 但是运行打包后还是报错,这是为什么呢,该怎么解决呢
GCT1015
相关分类