feat: add browser environment compatibility support
- Remove top-level Node.js imports that break bundlers - Use universal adapters for crypto operations - Add dynamic imports for Node.js-specific modules - Add browser field to package.json for bundler hints - Maintain full Node.js functionality while enabling browser usage This allows Brainy to be used with modern bundlers (Vite, Webpack, etc.) without requiring Node.js polyfills. Browser environments get core features while Node.js retains all capabilities including filesystem and networking.
This commit is contained in:
parent
b974b91672
commit
02d3c0149d
7 changed files with 122 additions and 41 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import { BaseAugmentation } from './brainyAugmentation.js'
|
||||
import { AugmentationManifest } from './manifest.js'
|
||||
import { createHash } from 'node:crypto'
|
||||
import { createHash } from '../universal/crypto.js'
|
||||
|
||||
export interface AuditLogConfig {
|
||||
enabled?: boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue