<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>模块系统 on PlumePHP</title><link>https://plumephp.com/tags/%E6%A8%A1%E5%9D%97%E7%B3%BB%E7%BB%9F/</link><description>Recent content in 模块系统 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 25 Sep 2026 14:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E6%A8%A1%E5%9D%97%E7%B3%BB%E7%BB%9F/index.xml" rel="self" type="application/rss+xml"/><item><title>Node.js 模块系统深度：CommonJS、ESM 与工程化实践</title><link>https://plumephp.com/nodejs-module-system-esm/</link><pubDate>Fri, 25 Sep 2026 14:00:00 +0800</pubDate><guid>https://plumephp.com/nodejs-module-system-esm/</guid><description>&lt;p&gt;Node.js 的模块系统经历了从 CommonJS 到 ESM 的漫长演进。模块解析规则决定了 &lt;code&gt;require()&lt;/code&gt; 与 &lt;code&gt;import&lt;/code&gt; 到底怎么找到文件，也决定了循环依赖、tree-shaking 与双格式互操作这些生产级问题的走向。本文从解析机制出发，讲透 CJS 与 ESM，并给出一套可落地的工程配置。&lt;/p&gt;</description></item></channel></rss>