Files
homeassistant-mcp/src/polyfills.js
jango-blockchained 9a02bdaf11 feat: add Bun polyfills and refactor LiteMCP implementation
- Introduced polyfills for Node.js compatibility in Bun runtime
- Moved LiteMCP implementation to a dedicated module
- Updated package.json to include @digital-alchemy/hass dependency
- Refactored import for LiteMCP to use local module path
2025-02-03 22:55:36 +01:00

9 lines
253 B
JavaScript

// Add necessary polyfills for Node.js compatibility in Bun
import { webcrypto } from 'node:crypto';
// Polyfill for crypto.subtle in Bun
if (!globalThis.crypto?.subtle) {
globalThis.crypto = webcrypto;
}
// Add any other necessary polyfills here