ITADN

`isNode()` should not be true for bun

#2Closedsilverwind 创建于 2024-06-06
S
silverwindcommented
Bun unfortunately masquerades as node in `globalThis.process.versions`: ```js { node: '22.2.0', bun: '1.1.12', } ``` Imho, `isNode` should return false when `bun` is present. Alternatively, call out this problem in docs only.
关闭于 2024-06-06 1 条评论