Browse Source

adjust entry file (#4594)

pull/4599/head
偏右 8 years ago
committed by GitHub
parent
commit
e032fa6a62
  1. 2
      components/index.tsx
  2. 2
      index.js

2
components/index.tsx

@ -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

@ -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…
Cancel
Save