NPC

Results 2 comments of NPC

感谢您的答复,我尝试按照您的方案试一下。 另外,您有没有考虑过让pinus以后增加对ESM的支持? 发自我的iPhone ------------------ 原始邮件 ------------------ 发件人: 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...

ESM(ECMAScript Modules)。目前pinus的模块支持CommonJS,比如tsconfig.json里设置: "module": "commonjs", //指定生成哪个模块系统代码。如果是支持ESM,会设置成"module": "NodeNext"之类。支持ESM的package需要在package.json设置:"type": "module"。