// Just import style for https://github.com/ant-design/ant-design/issues/3745
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);

// build for `dist/antd-mobile.css`
req.keys().forEach((mod) => {
  req(mod);
});

// build for `dist/antd-mobile.js`
module.exports = require('./components/index');

/**
 * This is the entry file for `npm run dist`
 */

/**
 * build for `dist/antd-mobile.css`
 * Note: Just import style. The pattern is different in `v0.9`. The difference is `(style\/)?`
 */
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/);
req.keys().forEach((mod) => {
  req(mod);
});

/**
 * build for `dist/antd-mobile.js`
 */
// module.exports = require('./components/index');

improve index.js comment