26 Star 89 Fork 17

gitlabcc/NodeBB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
require-main.js 327 Bytes
一键复制 编辑 原始数据 按行查看 历史
'use strict';
// this forces `require.main.require` to always be relative to this directory
// this allows plugins to use `require.main.require` to reference NodeBB modules
// without worrying about multiple parent modules
if (require.main !== module) {
require.main.require = function (path) {
return require(path);
};
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/qiai365/NodeBB.git
git@gitee.com:qiai365/NodeBB.git
qiai365
NodeBB
NodeBB
master

搜索帮助