mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 12:04:35 +00:00
fix: Bun compatibility for build scripts and runtime detection
This commit is contained in:
parent
73734a23a1
commit
6d0c544e18
5 changed files with 12 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// NEVER convert to top-level import - breaks browser/Vite builds (web-ui)
|
||||
let _os: typeof import("node:os") | null = null;
|
||||
if (typeof process !== "undefined" && process.versions?.node) {
|
||||
if (typeof process !== "undefined" && (process.versions?.node || process.versions?.bun)) {
|
||||
import("node:os").then((m) => {
|
||||
_os = m;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue