• This project
    • Loading...
  • Sign in

이세린 / anxietymanager

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • anxietymanager
  • node_modules
  • prism-media
  • src
  • util
  • loader.js
  • 이세린's avatar
    bot primed and online · 3afa4fd9
    3afa4fd9
    이세린 authored 2022-05-31 04:18:14 +0900
loader.js 286 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
exports.require = function loader(list) {
  const errorLog = [];
  for (const [name, fn] of list) {
    try {
      const data = fn(require(name));
      data.name = name;
      return data;
    } catch (e) {
      errorLog.push(e);
    }
  }
  throw new Error(errorLog.join('\n'));
};