@mastra/core
Version:
The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.
26 lines (23 loc) • 782 B
JavaScript
;
var chunk2WZYQCRK_cjs = require('./chunk-2WZYQCRK.cjs');
var promises = require('fs/promises');
var dotenv = require('dotenv');
var MastraBundler = class extends chunk2WZYQCRK_cjs.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 promises.readFile(file, "utf-8");
const config = dotenv.parse(content);
Object.entries(config).forEach(([key, value]) => {
envVars.set(key, value);
});
}
return envVars;
}
};
exports.MastraBundler = MastraBundler;
//# sourceMappingURL=chunk-WVIY3V3E.cjs.map
//# sourceMappingURL=chunk-WVIY3V3E.cjs.map