运行打包的时候报错ERROR in static/js/17.d03964c667bc8c2da512.js from UglifyJsUnexpected 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')]
},
但是运行打包后还是报错,这是为什么呢,该怎么解决呢
添加回答
举报
0/150
提交
取消