message: feat: allow module errors in webpack-entry
diff: @@ -22,7 +22,7 @@ module.exports = async function webpackEntry() {
  const reg = await Promise.all(files.map(async file => {
  const full = path.join(context, file);
  - const exported = require(full);
  + const exported = getExported(full);
  const mod = [`module.exports['${file}'] = require('./${file}');`]
  @@ -56,3 +56,11 @@ function ext(e, ...input) {
  parsed.ext = e;
  return path.format(parsed);
  }
  +
  +function getExported(id) {
  + try {
  + return require(id)
  + } catch (err) {
  + return {};
  + }
  +}
  