解释器
🌐 Resolver
Oxc 解析器是一个高性能的 Node.js 模块解析实现,兼容 webpack 的 enhanced-resolve。它在 自己的 GitHub 仓库 中维护。
🌐 The Oxc resolver is a high-performance Node.js module resolution implementation that's compatible with webpack's enhanced-resolve. It's maintained in its own GitHub repository.
架构
🌐 Architecture
该解析器被设计为 enhanced-resolve 的直接移植版本,同时具有显著的性能提升:
🌐 The resolver is designed as a direct port of enhanced-resolve with significant performance improvements:
- 比增强解析快28倍
- 尽可能使用零拷贝字符串操作
- 优化路径遍历算法
- 高效缓存策略
