{"action":"created","issue":{"url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/9","repository_url":"https://api.github.com/repos/ctrlplusb/code-split-component","labels_url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/9/comments","events_url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/9/events","html_url":"https://github.com/ctrlplusb/code-split-component/issues/9","id":187836175,"number":9,"title":"Uglify fails with 2-alpha.1 ","user":{"login":"dlebedynskyi","id":1182917,"avatar_url":"https://avatars.githubusercontent.com/u/1182917?v=3","gravatar_id":"","url":"https://api.github.com/users/dlebedynskyi","html_url":"https://github.com/dlebedynskyi","followers_url":"https://api.github.com/users/dlebedynskyi/followers","following_url":"https://api.github.com/users/dlebedynskyi/following{/other_user}","gists_url":"https://api.github.com/users/dlebedynskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/dlebedynskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlebedynskyi/subscriptions","organizations_url":"https://api.github.com/users/dlebedynskyi/orgs","repos_url":"https://api.github.com/users/dlebedynskyi/repos","events_url":"https://api.github.com/users/dlebedynskyi/events{/privacy}","received_events_url":"https://api.github.com/users/dlebedynskyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T21:37:55Z","updated_at":"2016-11-07T21:43:18Z","closed_at":null,"body":"Thanks for working on this component. It looks like it going to be very handy. \r\nI'm running into issue on production build with uglifyjs. \r\nIt only happens for production build. \r\n\r\nMy config \r\n```\r\n//package.json\r\n\"build\": \"NODE_ENV=production webpack --config src/config/webpack.config.prod.js -p\",\r\n```\r\n```\r\n//webpack.config.prod.js\r\nentry: {\r\n    vendor,\r\n    app: ['babel-polyfill', `${SRC}/styles/app.scss`, `${SRC}/client-entry.js`]\r\n  },\r\nmodule: {\r\n    loaders: [\r\n      {\r\n        test: /\\.json$/,\r\n        loader: 'json-loader'\r\n      },\r\n      {\r\n        test: /\\.jsx?$/,\r\n        include: [/src/],\r\n        loader: 'babel',\r\n        query: {\r\n          plugins: [\r\n           [\r\n              'code-split-component/babel',\r\n              {\r\n                disabled: false\r\n              }\r\n            ]\r\n          ]\r\n        }\r\n      },\r\n... \r\n\r\nprodConfig.module.loaders.push({\r\n  test: /\\.jsx?$/, loader: WebpackStrip.loader('console.log', 'console.debug')\r\n});\r\n\r\nprodConfig.plugins.push(new CodeSplitPlugin());\r\n\r\n```\r\nGives \r\n```\r\nERROR in vendor.ce7455f2b338600395b1.js from UglifyJs\r\nSyntaxError: Unexpected token num «820075192», expected punc «:» [webpack/bootstrap 6f7c862bd7fb36d95dc3:55,0][vendor.ce7455f2b338600395b1.js:56,12]\r\n```\r\nfor reference \r\n```\r\n// vendor has\r\nmodule.exports = [\r\n  'debug',\r\n  'react',\r\n  'react-dom',\r\n  'react-helmet',\r\n  'react-redux',\r\n  'redux',\r\n...\r\n]\r\n```\r\nHave no issues without `prodConfig.plugins.push(new CodeSplitPlugin());`"},"comment":{"url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/comments/258972243","html_url":"https://github.com/ctrlplusb/code-split-component/issues/9#issuecomment-258972243","issue_url":"https://api.github.com/repos/ctrlplusb/code-split-component/issues/9","id":258972243,"user":{"login":"ctrlplusb","id":12164768,"avatar_url":"https://avatars.githubusercontent.com/u/12164768?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrlplusb","html_url":"https://github.com/ctrlplusb","followers_url":"https://api.github.com/users/ctrlplusb/followers","following_url":"https://api.github.com/users/ctrlplusb/following{/other_user}","gists_url":"https://api.github.com/users/ctrlplusb/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrlplusb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrlplusb/subscriptions","organizations_url":"https://api.github.com/users/ctrlplusb/orgs","repos_url":"https://api.github.com/users/ctrlplusb/repos","events_url":"https://api.github.com/users/ctrlplusb/events{/privacy}","received_events_url":"https://api.github.com/users/ctrlplusb/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T21:43:18Z","updated_at":"2016-11-07T21:43:18Z","body":"Hi @dlebedynskyi can you please share your configuration?  I am running with this component in [`react-universally`](https://github.com/ctrlplusb/react-universally) which contains uglifyjs for the production build.  It's building fine for me.  I need to see if there are any differences. "}}
{"actor":{"display_login":"ctrlplusb"}}