导出目标的路径规则和验证


¥Path Rules and Validation for Export Targets

"exports" 字段中将路径定义为目标时,Node.js 会强制执行几条规则以确保安全性、可预测性和正确的封装。理解这些规则对于发布包的作者至关重要。

¥When defining paths as targets in the "exports" field, Node.js enforces several rules to ensure security, predictability, and proper encapsulation. Understanding these rules is crucial for authors publishing packages.