{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1329","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1329/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1329/events","html_url":"https://github.com/webpack/webpack/issues/1329","id":99604214,"number":1329,"title":"duplicated dependencies in the output bundle","user":{"login":"Zane-XY","id":2939476,"avatar_url":"https://avatars.githubusercontent.com/u/2939476?v=3","gravatar_id":"","url":"https://api.github.com/users/Zane-XY","html_url":"https://github.com/Zane-XY","followers_url":"https://api.github.com/users/Zane-XY/followers","following_url":"https://api.github.com/users/Zane-XY/following{/other_user}","gists_url":"https://api.github.com/users/Zane-XY/gists{/gist_id}","starred_url":"https://api.github.com/users/Zane-XY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zane-XY/subscriptions","organizations_url":"https://api.github.com/users/Zane-XY/orgs","repos_url":"https://api.github.com/users/Zane-XY/repos","events_url":"https://api.github.com/users/Zane-XY/events{/privacy}","received_events_url":"https://api.github.com/users/Zane-XY/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-07T08:21:59Z","updated_at":"2015-11-16T02:10:58Z","closed_at":null,"body":"I have `require('moment')` in my own module, also I use `bootstrap-daterangepicker` which also depends on `moment`, then I saw this in my build log:\r\n\r\n```\r\n ./~/moment/moment.js 104 kB {0} [built]\r\n ...\r\n[10] ./~/bootstrap-daterangepicker/~/moment/moment.js 104 kB {0} [built]\r\n```\r\n\r\nit seems `moment.js` has been bundled two times by webpack, and I have enabled `DedupePlugin` \r\n\r\n```javascript\r\n\tplugins: [\r\n\t\tnew webpack.optimize.DedupePlugin(),\r\n\t\tnew webpack.IgnorePlugin(/^\\.\\/locale$/, /moment$/), \r\n...\r\n\t],\r\n```\r\nHow to get rid of the duplication?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/156889755","html_url":"https://github.com/webpack/webpack/issues/1329#issuecomment-156889755","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1329","id":156889755,"user":{"login":"Zane-XY","id":2939476,"avatar_url":"https://avatars.githubusercontent.com/u/2939476?v=3","gravatar_id":"","url":"https://api.github.com/users/Zane-XY","html_url":"https://github.com/Zane-XY","followers_url":"https://api.github.com/users/Zane-XY/followers","following_url":"https://api.github.com/users/Zane-XY/following{/other_user}","gists_url":"https://api.github.com/users/Zane-XY/gists{/gist_id}","starred_url":"https://api.github.com/users/Zane-XY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zane-XY/subscriptions","organizations_url":"https://api.github.com/users/Zane-XY/orgs","repos_url":"https://api.github.com/users/Zane-XY/repos","events_url":"https://api.github.com/users/Zane-XY/events{/privacy}","received_events_url":"https://api.github.com/users/Zane-XY/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T02:10:58Z","updated_at":"2015-11-16T02:10:58Z","body":"@bebraw I didn't. I solved the problem by externalize the dependencies, and include them outside of webpack."}}