You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: smallwhite ***@***.***>
发送时间: 2025年5月26日 13:38
收件人: node-pinus/pinus ***@***.***>
抄送: NPC ***@***.***>, Author ***@***.***>
主题: Re: [node-pinus/pinus] packages/pinus/lib/modules/watchServer.ts 试图导入项目没有安装的模块heapdump (Issue #999)
whtiehack left a comment (node-pinus/pinus#999)
这个可能是 admin monitor的相关功能。 你在自己项目里安装这个 heapdump就行了。
另外你也可以自己实现一个 admin module或者其它方式来实现。都可以。
你也可以提交个PR,修改成你说的内置的。(但是因为这个是pomelo遗传下来的功能。所以要在保证兼容性的前提下修改。)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Activity
whtiehack commentedon May 26, 2025
这个可能是 admin monitor的相关功能。 你在自己项目里安装这个 heapdump就行了。
另外你也可以自己实现一个 admin module或者其它方式来实现。都可以。
你也可以提交个PR,修改成你说的内置的。(但是因为这个是pomelo遗传下来的功能。所以要在保证兼容性的前提下修改。)
eddywen commentedon May 26, 2025
whtiehack commentedon May 26, 2025
没懂。 没接触过你说的 ESM
eddywen commentedon May 26, 2025
ESM(ECMAScript Modules)。目前pinus的模块支持CommonJS,比如tsconfig.json里设置: "module": "commonjs", //指定生成哪个模块系统代码。如果是支持ESM,会设置成"module": "NodeNext"之类。支持ESM的package需要在package.json设置:"type": "module"。
whtiehack commentedon May 27, 2025
对这个了解不多,另外好像没啥支持的必要,都是用的ts在写代码啊。。难道性能有区别?
另外框架大量的依赖 require,估计这玩意是个大工程。 我是没动力研究的。