{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/13260","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/13260/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/13260/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/13260/events","html_url":"https://github.com/ant-design/ant-design/issues/13260","id":383693148,"node_id":"MDU6SXNzdWUzODM2OTMxNDg=","number":13260,"title":"Duplicated moment have been bundled","user":{"login":"onlyeric23","id":5072364,"node_id":"MDQ6VXNlcjUwNzIzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5072364?v=4","gravatar_id":"","url":"https://api.github.com/users/onlyeric23","html_url":"https://github.com/onlyeric23","followers_url":"https://api.github.com/users/onlyeric23/followers","following_url":"https://api.github.com/users/onlyeric23/following{/other_user}","gists_url":"https://api.github.com/users/onlyeric23/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyeric23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyeric23/subscriptions","organizations_url":"https://api.github.com/users/onlyeric23/orgs","repos_url":"https://api.github.com/users/onlyeric23/repos","events_url":"https://api.github.com/users/onlyeric23/events{/privacy}","received_events_url":"https://api.github.com/users/onlyeric23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false},"assignees":[{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-23T03:17:33Z","updated_at":"2018-11-23T05:45:41Z","closed_at":null,"author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### What problem does this feature solve?\r\nReduce bundle size\r\n\r\n### What does the proposed API look like?\r\nMove moment from dependencies to peerDependencies\r\n\r\nThere are four copies of moment in my bundle. My own, from antd, from rc-calendar, and from rc-time-picker. Each of them is almost 150kilobtyes. Even though we can compress the bundle, it is still a waste.\r\n![image](https://user-images.githubusercontent.com/5072364/48927377-5f2b7980-ef10-11e8-898c-5b73dd4ff36a.png)\r\n\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/441160107","html_url":"https://github.com/ant-design/ant-design/issues/13260#issuecomment-441160107","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/13260","id":441160107,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE2MDEwNw==","user":{"login":"afc163","id":507615,"node_id":"MDQ6VXNlcjUwNzYxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/507615?v=4","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T05:45:41Z","updated_at":"2018-11-23T05:45:41Z","author_association":"MEMBER","body":"I think it is more like a problem of you webpack config."}}
{"actor":{"display_login":"afc163"}}