mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 23:46:28 +08:00
adjust entry file (#4594)
This commit is contained in:
parent
c4c1078f2d
commit
e032fa6a62
@ -2,7 +2,7 @@
|
||||
// this file is not used if use https://github.com/ant-design/babel-plugin-import
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (typeof console !== 'undefined' && console.warn) {
|
||||
console.warn(`You are using prebuilt antd,
|
||||
console.warn(`You are using a whole package of antd,
|
||||
please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.`);
|
||||
}
|
||||
}
|
||||
|
2
index.js
2
index.js
@ -7,7 +7,7 @@ function camelCase(name) {
|
||||
}
|
||||
|
||||
// Just import style for https://github.com/ant-design/ant-design/issues/3745
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)index\.tsx?$/);
|
||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);
|
||||
|
||||
req.keys().forEach((mod) => {
|
||||
let v = req(mod);
|
||||
|
Loading…
Reference in New Issue
Block a user