UNPKG

fumadocs-mdx

Version:

The built-in source for Fumadocs

26 lines (24 loc) 818 B
import "../core-DjldE3H9.js"; import "../codegen-DleOVLNr.js"; import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-DI4cexsC.js"; import { t as createMetaLoader } from "../meta-BKBx8Gab.js"; import { t as getCore } from "../webpack--VSEE6Zp.js"; //#region src/webpack/meta.ts let instance; async function loader(source, callback) { const options = this.getOptions(); this.cacheable(true); this.addDependency(options.absoluteCompiledConfigPath); if (!instance) instance = toWebpack(createMetaLoader(createStandaloneConfigLoader({ core: getCore(options), buildConfig: false, mode: options.isDev ? "dev" : "production" }), { json: "json", yaml: "js" })); await instance.call(this, source, callback); } //#endregion export { loader as default }; //# sourceMappingURL=meta.js.map