UNPKG

@mastra/core

Version:

The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.

24 lines (22 loc) 712 B
import { MastraBase } from './chunk-FQ4W6KBT.js'; import { readFile } from 'fs/promises'; import { parse } from 'dotenv'; var MastraBundler = class extends MastraBase { constructor({ name, component = "BUNDLER" }) { super({ component, name }); } async loadEnvVars() { const envVars = /* @__PURE__ */ new Map(); for (const file of await this.getEnvFiles()) { const content = await readFile(file, "utf-8"); const config = parse(content); Object.entries(config).forEach(([key, value]) => { envVars.set(key, value); }); } return envVars; } }; export { MastraBundler }; //# sourceMappingURL=chunk-K2243MGP.js.map //# sourceMappingURL=chunk-K2243MGP.js.map