UNPKG

@medusajs/admin-bundler

Version:

Bundler for the Medusa admin dashboard.

26 lines (19 loc) 808 B
import { AdminOptions } from '@medusajs/types'; import * as express_serve_static_core from 'express-serve-static-core'; type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "storefrontUrl"> & { outDir: string; sources?: string[]; plugins?: string[]; }; declare function build(options: BundlerOptions): Promise<void>; declare function develop(options: BundlerOptions): Promise<express_serve_static_core.Router>; interface PluginOptions { root: string; outDir: string; } declare function plugin(options: PluginOptions): Promise<void>; type ServeOptions = { outDir: string; }; declare function serve(options: ServeOptions): Promise<express_serve_static_core.Router>; export { type BundlerOptions, build, develop, plugin, serve };