diff --git a/index.js b/index.js index c37d851e65..ab328b01e3 100644 --- a/index.js +++ b/index.js @@ -17,4 +17,7 @@ const antd = { Card, LocaleProvider, Transfer, Cascader, }; +console.warn(`you are using prebuild antd, +please use https://github.com/ant-design/babel-plugin-antd to reduce app bundle size.`); + export default antd; diff --git a/package.json b/package.json index 040b8e5350..9f51965368 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "bugs": { "url": "https://github.com/ant-design/ant-design/issues" }, - "main": "lib/index", + "main": "dist/antd", "files": [ "dist", "lib",