1此改、(plugin uglify) Error: Unexpected token: name ?key?, expected: punc ?;?
16 | }
17 | function extend(to, from) {
> 18 | for (let key in from) {
| ^ Unexpected token: name ?key?, expected: punc ?;?
19 | to[key] = from[key];
20 | }
21 |
[!] (plugin uglify) Error: Unexpected token: name ?key?, expected: punc ?;?
原因:這個插件目前不支持es6.
解決方法:可以用rollup-plugin-terser替換