{"action":"opened","issue":{"url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/294","repository_url":"https://api.github.com/repos/weexteam/weex-toolkit","labels_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/294/comments","events_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/294/events","html_url":"https://github.com/weexteam/weex-toolkit/issues/294","id":299680888,"number":294,"title":"npm run build:prod failed because uglifyjs can not support es6","user":{"login":"mdsb100","id":2350193,"avatar_url":"https://avatars2.githubusercontent.com/u/2350193?v=4","gravatar_id":"","url":"https://api.github.com/users/mdsb100","html_url":"https://github.com/mdsb100","followers_url":"https://api.github.com/users/mdsb100/followers","following_url":"https://api.github.com/users/mdsb100/following{/other_user}","gists_url":"https://api.github.com/users/mdsb100/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsb100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsb100/subscriptions","organizations_url":"https://api.github.com/users/mdsb100/orgs","repos_url":"https://api.github.com/users/mdsb100/repos","events_url":"https://api.github.com/users/mdsb100/events{/privacy}","received_events_url":"https://api.github.com/users/mdsb100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T11:25:40Z","updated_at":"2018-02-23T11:25:40Z","closed_at":null,"author_association":"NONE","body":"Makes sure these boxes are checked befor submitting your issue - thank you!\r\n\r\n- [x] Check that your node version is >= 6 and npm version is >=5(Run `npm --version` and `node --version`).\r\n- x[] If you encounter any problems using the tool, please check if there has a new version to update(Run `weex update [pluginname]@latest`).\r\n- [x] Check the [FAQ](https://github.com/weexteam/weex-toolkit#faq), make sure there have not the same issue.\r\n\r\n## Your development environment\r\n- v1.2.8\r\n- mac\r\n\r\n## The key error stack message.\r\n```\r\n    ERROR in components/seventimes-cell/seventimes-cell.94b84788c3674b799bcb.bundle.js from UglifyJs\r\n    undefined [components/seventimes-cell/seventimes-cell.94b84788c3674b799bcb.bundle.js:6,undefined]\r\n\r\n    ERROR in components/discover-cell/discover-cell.3e2f3013d4cdbc92fa6f.bundle.js from UglifyJs\r\n    Unexpected token: punc (() [components/discover-cell/discover-cell.3e2f3013d4cdbc92fa6f.bundle.js:21015,6]\r\n\r\n    ERROR in components/optional-cell/optional-cell.58776c66e833c4851730.bundle.js from UglifyJs\r\n    Unexpected token: punc (() [components/optional-cell/optional-cell.58776c66e833c4851730.bundle.js:21046,6]\r\n\r\n    ERROR in homepage.f3c63f51b643a9f8e95a.bundle.js from UglifyJs\r\n    undefined [homepage.f3c63f51b643a9f8e95a.bundle.js:6,undefined]\r\n\r\n    ERROR in components/news-cell/news-cell.ccdb25b616abde3c54b5.bundle.js from UglifyJs\r\n    Unexpected token: punc (() [components/news-cell/news-cell.ccdb25b616abde3c54b5.bundle.js:21018,6]\r\n```\r\n\r\nseventimes-cell.94b84788c3674b799bcb.bundle.js not convert to es5, just es6.\r\nuglifyjs can not support es6.\r\n\r\nHow can I fix it?\r\n\r\nI try use [uglifyjs-webpack-plugin](https://github.com/webpack-contrib/uglifyjs-webpack-plugin), but get another error.\r\n\r\n## Steps to reproduce the problem.(Maybe a [dotwe](http://dotwe.org/vue) link,)\r\n\r\n"}}
{"actor":{"display_login":"mdsb100"}}